ngx_http_get_module_loc_conf() and r->internal weirdness

Srebrenko Šehić ssehic at
Wed Dec 30 01:03:43 MSK 2009

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?


More information about the nginx-devel mailing list