using uninitialized "pat" variable while logging request

Toni Mueller support-nginx at oeko.net
Sat Nov 16 01:02:31 UTC 2013



Hi,

On Sat, Nov 16, 2013 at 04:07:19AM +0400, Valentin V. Bartenev wrote:
> The "set" directive isn't something essential, and actually it is just a 
> directive from the rewrite module.

> See here how it works:
> http://nginx.org/en/docs/http/ngx_http_rewrite_module.html
> It is evaluated on the rewrite phase of request processing.  Thus, if
> the request is finalized before this phase, then your variable is left 
> uninitialized.

Thanks for the explanation - I did not get that from this page. :/

> To debug your locations and for better understanding what is going on,
> you can use nginx debug log: http://nginx.org/en/docs/debugging_log.html

Unfortunately, there is nothing between the info (too little) and
debug log levels (too much). But it was fruitful, as I found the
problem. :)


Cheers,
--Toni++



More information about the nginx mailing list