I\'m wondering how do I know if a particular location[s] used to process request in nginx.
E.g.:
# 1
location / {}
# 2
location ~ /[\\w
A word of warning on this approach. I found it's a bad idea to use location as your debug header, since Location is a real header used by the HTTP response 301.
So if (like me) in your testing you end up with this:
HTTP/1.1 301 Moved Permanently
...
Location: http://mydomain.com/banana/
location: banana
Then your browser will freak out and report Duplicate headers received from server. So use locationdebug or something safe.