In this tutorial, I will show you how to enable Nginx status page. The Nginx status page is a feature that provides real-time information about the performance and health of an Nginx web server. To enable the Nginx status page, you need to modify your Nginx configuration file and set up a location directive for the status page.
We have to check first whether
with-http_stub_status_module module is compiled on Nginx or not by using the following command:
nginx -V 2>&1 | grep -o with-http_stub_status_module
If you see following result:
It means we can go to next step.
Add following code inside your Nginx server
allow 192.168.1.100 means the status page can be accessed only from 192.168.1.100. So, you have to change it with your IP Address.
Don’t forget to restart your Nginx by using this command:
service nginx restart
http://your-nginx-address/status, you will see result like the picture below.