Skip to content

Instantly share code, notes, and snippets.

@alq666
Created August 29, 2012 21:14
Show Gist options
  • Save alq666/3519070 to your computer and use it in GitHub Desktop.
Save alq666/3519070 to your computer and use it in GitHub Desktop.
nginx status configuration
location = /nginx_status {
listen 9999;
stub_status on;
access_log off;
allow 127.0.0.1;
deny all;
}
@alq666
Copy link
Author

alq666 commented Aug 29, 2012

From http://wiki.nginx.org/NginxHttpCoreModule#location

The order in which location directives are checked is as follows:

Directives with the "=" prefix that match the query exactly (literal string). If found, searching stops.
All remaining directives with conventional strings. If this match used the "^~" prefix, searching stops.
Regular expressions, in the order they are defined in the configuration file.
If #3 yielded a match, that result is used. Otherwise, the match from #2 is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment