Skip to content

Enable the Nginx server status module

To use the Nginx status module, first create an app on your server and then SSH into the server as root and create the file:

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

with the contents:

location /nginx-status {
stub_status;
access_log off;
# Uncomment to only allow status page requests from within the server.
# allow 127.0.0.1;
# deny all;
}

and then restart Nginx.

Terminal window
sudo service nginx-sp restart

You can then request the status page at the path /nginx-status using any of the app’s domain names as the hostname of the request.

See the ngx_http_stub_status_module documentation for more information.