On Wed, Dec 23, 2009 at 11:42 AM, Piotr Sikora <piotr.sikora@frickle.com> wrote:
> ngx_http_perl_handler_init should stay in postconfiguration init phase. What
> you should do to use this feature conditionally is to use yourcf->enable
> flag (for working example check ngx_http_autoindex_module.c).
>
> This is because you don't set new handler but you are adding new one to the
> processing chain and your handler will be called for every single request
> (so you must return NGX_DECLINE as soon as possible when it isn't enabled).
Thanks Piotr. I'll implement it as suggested by you and Maxim.
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel