rewrite phases order

Maxim Dounin mdounin at mdounin.ru
Fri Jan 11 10:51:15 UTC 2013


Hello!

On Fri, Jan 11, 2013 at 11:56:15AM +0200, Anatoli Marinov wrote:

> Hello colleagues,
> I am wondering is there an way to order function calls for rewrite phase.
> For example I have 3 modules that may reject request and all they
> register a function for request rewrite phase.
> The modules are A, B and C. From log messages I can see that the
> function are called in "unordered" way for example B, C, A. How can
> I order the calls to A, B, C ?

Yes, last added module is always called first.  If module order is 
important in your case, trivial solution would be to reorder --add-module 
configure arguments for the correct order.

-- 
Maxim Dounin
http://nginx.com/support.html



More information about the nginx-devel mailing list