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

nginx status page

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
KEZERN
Posts: 13
Joined: Fri Sep 23, 2016 6:51 am

nginx status page
  • Quote

Post by KEZERN » Fri Jan 19, 2018 5:47 pm

I'm trying to access nginx status page.
I have this on /etc/nginx/conf.d/status.com
server {
listen 127.0.0.1:80 default;
server_name _;
server_name_in_redirect off;
location /nginx_status {
stub_status on;
access_log off;
}
}

When I try to access http://myserverip/nginx_status I get a 404 error.
What I have to do to access nginx status page?

Best regards.
Top

noogen
Posts: 66
Joined: Thu Jan 05, 2017 9:20 pm

Re: nginx status page
  • Quote

Post by noogen » Fri Jan 19, 2018 11:39 pm

#1 - your IP is wrong, you don't want to use 127.0.0.1. This just bind to your local interface, which may not be exposed to the internet. Additionally, it may not work because something else, such as Apache2, may already be bound to that IP and port. Use a public IP.

So to really test it, do this:

Code: Select all

server {
  listen 81 default;
  server_name _;
  server_name_in_redirect off;
  location /nginx_status {
    stub_status on;
    access_log off;
  }
}
Explain, bind to all IPs or network interface on port 81. If that work, then you can try to figure out how to update your other default-server nginx binding if you really wanted on port 80.
Top

KEZERN
Posts: 13
Joined: Fri Sep 23, 2016 6:51 am

Re: nginx status page
  • Quote

Post by KEZERN » Sat Jan 20, 2018 9:18 am

Thanks for your response,
That was the problem. I have also created a rule in the firewall and now it is working.
Top


Post Reply
  • Print view

3 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