We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
nginx status page
nginx status page
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.
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.
Re: nginx status page
#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:
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.
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;
}
}
Re: nginx status page
Thanks for your response,
That was the problem. I have also created a rule in the firewall and now it is working.
That was the problem. I have also created a rule in the firewall and now it is working.