Created
August 29, 2012 21:14
-
-
Save alq666/3519070 to your computer and use it in GitHub Desktop.
nginx status configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location = /nginx_status { | |
listen 9999; | |
stub_status on; | |
access_log off; | |
allow 127.0.0.1; | |
deny all; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.