I need to ensure my custom filter always executes before the mod_rewrite
. As per Apache Tutor, filters do not run in a deterministic order:
The request processing axis is straightforward: the phases happen strictly in order. But confusion arises in the data axis. For maximum efficiency, this is pipelined, so the content generator and filters do not run in a deterministic order. So, for example, you cannot in general set something in an input filter and expect it to apply in the generator or output filters.
How to ensure execution sequence of two filters, or is it possible?
Update:
Someone has indicated to mod_info
to display detailed information about modules and their order.