Welcome! Log In Create A New Profile

Advanced

Re: Installing handlers in NGX_HTTP_LOG_PHASE

Srebrenko Šehić
December 23, 2009 07:56AM
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
Subject Author Views Posted

Installing handlers in NGX_HTTP_LOG_PHASE

Srebrenko Šehić 3777 December 23, 2009 04:50AM

Re: Installing handlers in NGX_HTTP_LOG_PHASE

Maxim Dounin 1129 December 23, 2009 05:08AM

Re: Installing handlers in NGX_HTTP_LOG_PHASE

Srebrenko Šehić 1109 December 23, 2009 07:54AM

Re: Installing handlers in NGX_HTTP_LOG_PHASE

Maxim Dounin 1603 December 23, 2009 08:46AM

Re: Installing handlers in NGX_HTTP_LOG_PHASE

Piotr Sikora 1139 December 23, 2009 05:44AM

Re: Installing handlers in NGX_HTTP_LOG_PHASE

Srebrenko Šehić 1041 December 23, 2009 07:56AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 122
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready