How to Enable Nginx Stub Status Module

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:


with the following contents:

location /nginx_status {
  # copied from
  stub_status   on;
  access_log    off;

  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.

Was this answer helpful? 0 Users Found This Useful (0 Votes)