roles/nginx: Fix munin.conf for nginx_status
This config stopped working a few years ago probably when hosts started getting IPv6 and we need to allow ::1. Make sure we're only listening on local loopback interfaces also.
This commit is contained in:
parent
2dc195b33c
commit
e169a3744a
@ -1,6 +1,8 @@
|
|||||||
# nginx status module + munin aliases
|
# nginx status module + munin aliases
|
||||||
server {
|
server {
|
||||||
listen localhost:80;
|
listen 127.0.0.1:80;
|
||||||
|
listen [::]:80;
|
||||||
|
server_name localhost;
|
||||||
|
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
|
|
||||||
@ -8,6 +10,7 @@ server {
|
|||||||
stub_status on;
|
stub_status on;
|
||||||
access_log off;
|
access_log off;
|
||||||
allow 127.0.0.1;
|
allow 127.0.0.1;
|
||||||
|
allow ::1;
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -18,7 +21,6 @@ server {
|
|||||||
|
|
||||||
location /munin/ {
|
location /munin/ {
|
||||||
alias /var/cache/munin/www/;
|
alias /var/cache/munin/www/;
|
||||||
index index.html
|
|
||||||
expires modified +310s;
|
expires modified +310s;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user