How to enable nginx stub status
Edit nginx.conf add in the server { ….. } block/context
location /nginx_status {
# Turn on nginx stats
stub_status on;
# I do not need logs for stats
access_log off;
# Security: Only allow access from your IP address #
allow your ip address;
# Send rest of the world to /dev/null #
deny all;
}
For Plesk edit /etc/nginx/plesk.conf.d/server.conf