Welcome! Log In Create A New Profile

Advanced

Re: using uninitialized "pat" variable while logging request

Toni Mueller
November 15, 2013 08:04PM
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++

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

using uninitialized "pat" variable while logging request

Toni Mueller November 15, 2013 05:26PM

Re: using uninitialized "pat" variable while logging request

Valentin V. Bartenev November 15, 2013 07:08PM

Re: using uninitialized "pat" variable while logging request

Toni Mueller November 15, 2013 08:04PM

Re: using uninitialized "pat" variable while logging request

Jonathan Matthews November 16, 2013 03:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 94
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready