Home EngineerEnable the Nginx server status page

Enable the Nginx server status page

by Quy Ta
0 minutes read

Similar to the previous post about the Apache Server status page, but this time for the Nginx Server.

# install additional modules, easiest way is to install nginx-full package
sudo apt-get install -y nginx-full

# update the nginx default config file
sudo nano /etc/nginx/sites-available/default

# add below block in `server` block
location /server-status {
    stub_status;
}

sudo nginx -t
sudo nginx -s reload

After that, you can visit the page /server-status to see the results. In my case, it’s http://qt:8001/server-status

The expected result

You may also like