Careful, don't break your server!
You should first read the article on customizing Nginx.

To enable the HTTP Stub Status module for Nginx, create the file:

/etc/nginx-sp/vhosts.d/APPNAME.d/nginx_status.conf

with the following contents:

location /nginx_status {
  # copied from http://blog.kovyrin.net/2006/04/29/monitoring-nginx-with-rrdtool/
  stub_status   on;
  access_log    off;

  allow SOME.IP.ADD.RESS;
  deny all;
}

Replace SOME.IP.ADD.RESS with the IP address of the machine you'll be accessing this page with.

Then, restart Nginx by running this command as root:

sudo service nginx-sp restart

You can find more information in the Nginx documentation for the allow directive and the HttpStubStatusModule.

Alert: For Control Panel Help & Tutorials, click here: Panel Tutorials
Was this answer helpful? 0 Users Found This Useful (0 Votes)