Created
November 17, 2016 04:48
-
-
Save kmjones1979/91d46790396abc9f12407f567af4b712 to your computer and use it in GitHub Desktop.
Example 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
server { | |
listen 8080; | |
server_name localhost example.com *.example.com; | |
location / { | |
return 301 /status.html; | |
} | |
error_page 500 502 503 504 /50x.html; | |
location = /50x.html { | |
root /usr/share/nginx/html; | |
} | |
location = /status.html { | |
root /usr/share/nginx/html; | |
} | |
location /status { | |
status; | |
} | |
location /stub_status { | |
stub_status; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment