diff --git a/plugins/node.d/nginx_request b/plugins/node.d/nginx_request index 70c1311fc..467ba47fb 100755 --- a/plugins/node.d/nginx_request +++ b/plugins/node.d/nginx_request @@ -22,11 +22,13 @@ compiled, and secondly it must be configured like this: server { listen 127.0.0.1; + listen [::1]; server_name localhost; location /nginx_status { stub_status on; access_log off; allow 127.0.0.1; + allow ::1; deny all; } } diff --git a/plugins/node.d/nginx_status b/plugins/node.d/nginx_status index ef76f066f..8f8a08be4 100755 --- a/plugins/node.d/nginx_status +++ b/plugins/node.d/nginx_status @@ -21,11 +21,13 @@ compiled, and secondly it must be configured like this: server { listen 127.0.0.1; + listen [::1]; server_name localhost; location /nginx_status { stub_status on; access_log off; allow 127.0.0.1; + allow ::1; deny all; } }