diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2021-06-22 23:41:35 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2021-06-22 23:43:14 -0400 |
| commit | e06942c803dcf2c398a8528f366bc4968725d8ff (patch) | |
| tree | b5700a082cce47c1d6507108ca3ba15d35cabddb | |
| parent | b9f65f310ebae46683e9cc0e5d900fa625a70f80 (diff) | |
cleaner nginx status monitoring configuration
| -rw-r--r-- | nginx/nginx.conf | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf index f60f66c1..55e91cd2 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -363,9 +363,15 @@ http { listen 127.0.0.1:81; listen [::1]:81; - location /nginx_status { + root /var/empty; + + location = /nginx_status { stub_status; access_log off; } + + location / { + return 404; + } } } |
