SOLVED : NGINX stub_status failed Topic is solved
SOLVED : NGINX stub_status failed
Hi i was google every tips but seems not working in nginx vestacp version exp from this tutorial : https://www.howtoforge.com/tutorial/how ... -centos-7/
and when i run this command i got error
Code: Select all
location /stub_status {
stub_status;
# Security: Only allow access from the IP below.
allow 127.0.0.1;
# Deny anyone else
deny all;
}
Code: Select all
curl http://127.0.0.1/stub_status
curl: (7) Failed connect to 127.0.0.1:80; Connection refused
Last edited by hanif81 on Sun Sep 16, 2018 1:01 pm, edited 2 times in total.
Re: NGINX stub_status failed
go to /etc/netdata/python.d
edit nginx.conf
edit row 98-104
from
to
and run command
edit nginx.conf
edit row 98-104
from
Code: Select all
localhost:
name : 'local'
url : 'http://localhost/stub_status'
localipv4:
name : 'local'
url : 'http://127.0.0.1/stub_status'
Code: Select all
localhost:
name : 'local'
url : 'http://localhost:8084/stub_status'
localipv4:
name : 'local'
url : 'http://127.0.0.1:8084/stub_status'
Code: Select all
systemctl restart netdata