aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2019-03-08 21:57:25 -0500
committerMitch Riedstra <mitch@riedstra.us>2019-03-08 21:57:25 -0500
commitae7e4a7a4290f4c375f9a8d61ace82df6ff5a5ed (patch)
tree662d90560582f825b61f00cfc35a1369dc31d966 /templates
parentd20fff93329f2bf7b4d19705c7598cedc2c924ac (diff)
downloadnginx-ae7e4a7a4290f4c375f9a8d61ace82df6ff5a5ed.tar.gz
nginx-ae7e4a7a4290f4c375f9a8d61ace82df6ff5a5ed.tar.xz
Add the status stub to the default configuration
Diffstat (limited to 'templates')
-rw-r--r--templates/nginx/nginx.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/nginx/nginx.conf b/templates/nginx/nginx.conf
index eb622d5..a16530a 100644
--- a/templates/nginx/nginx.conf
+++ b/templates/nginx/nginx.conf
@@ -31,6 +31,12 @@ http {
index index.html index.htm;
}
+ location /stub_status {
+ stub_status;
+ allow 127.0.0.1;
+ deny all;
+ }
+
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;