Welcome! Log In Create A New Profile

Advanced

ngx_http_get_module_loc_conf() and r->internal weirdness

Srebrenko Šehić
December 29, 2009 05:04PM
Hi list,

While working on extending nginx' Perl support, I stumbled upon the
following behavior.

If an input handler issues a internal redirect via
ngx_http_internal_redirect(), a call to
ngx_http_get_module_loc_conf(r, ngx_http_X_module) inside an
NGX_HTTP_LOG_PHASE handler returns NULL. If the request is not an
internal redirect, the call returns the expected location config.

Any idea why?

Thanks,
Srebrenko

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

ngx_http_get_module_loc_conf() and r->internal weirdness

Srebrenko Šehić 2394 December 29, 2009 05:04PM

Re: ngx_http_get_module_loc_conf() and r->internal weirdness

Srebrenko Šehić 878 January 07, 2010 01:22AM

Re: ngx_http_get_module_loc_conf() and r->internal weirdness

Maxim Dounin 825 January 07, 2010 07:24AM

Re: ngx_http_get_module_loc_conf() and r->internal weirdness

Srebrenko Šehić 858 January 07, 2010 08:02AM

Re: ngx_http_get_module_loc_conf() and r->internal weirdness

Maxim Dounin 1584 January 07, 2010 12:44PM



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

Online Users

Guests: 79
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