How to log internal location evaluation

Peter Booth peter_booth at me.com
Thu Jan 19 20:27:49 UTC 2017


You can get all that and a lot, lot more if you build a debug enabled version of nginx

Sent from my iPhone

> On Jan 19, 2017, at 11:49 AM, Nikolaos Milas <nmilas at noa.gr> wrote:
> 
> Hello,
> 
> I am running nginx 1.10.2 on CentOS 6.
> 
> I am trying to configure a new (virtual) website and I am having problems. I would like to be able to log details of the evaluation of URIs in location blocks by nginx.
> 
> For example, I would like to see in a log:
> 
> * which location block (actually which part of the configuration) was
>   used to evaluate a URI
> * if an alias is used in a location block, what was the path that was
>   calculated using the alias
> * in rewrite scenarios, how was a URI rewritten
> 
> The above info would help me understand where I am in error.
> 
> Can I get such info by using some config settings? Please let me know!
> 
> Thanks in advance,
> Nick
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx


More information about the nginx mailing list