Order of directive call during request handling

Maxim Dounin mdounin at mdounin.ru
Mon Jun 16 11:33:53 UTC 2014


On Mon, Jun 16, 2014 at 12:23:44PM +0530, Adarsh Pugalia wrote:

> I am not able to get the order in which the directive handlers are called
> when a request comes. I have a directive to connect to the database and the
> other to do put operation. In the conf file, i write the connect directive
> first, but when request comes, the connect directive handler is not called,
> and the put handler is called first. Can you please help me with the order
> in which they are called?

You may want to read Evan Miller's guides, see links here:


Maxim Dounin

More information about the nginx mailing list