Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

SOLVED : NGINX stub_status failed Topic is solved

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
hanif81
Posts: 7
Joined: Mon Sep 03, 2018 4:05 am

Os: CentOS 6x
Web: apache + nginx
SOLVED : NGINX stub_status failed
  • Quote

Post by hanif81 » Sun Sep 16, 2018 8:04 am

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/

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;
     }
and when i run this command i got error

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.
Top

hanif81
Posts: 7
Joined: Mon Sep 03, 2018 4:05 am

Os: CentOS 6x
Web: apache + nginx
Re: NGINX stub_status failed
  • Quote

Post by hanif81 » Sun Sep 16, 2018 12:59 pm

go to /etc/netdata/python.d

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'
to

Code: Select all

localhost:
  name : 'local'
  url  : 'http://localhost:8084/stub_status'

localipv4:
  name : 'local'
  url  : 'http://127.0.0.1:8084/stub_status'
and run command

Code: Select all

systemctl restart netdata
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password