using uninitialized "pat" variable while logging request

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


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

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


More information about the nginx mailing list