NGINX - stub status

From wiki.1001solutions.net



Module ngx_http_stub_status_module

Check your Nginx has the good compilation option:

nginx -V 2>&1 | grep --color -- --with-http_stub_status_module

In /etc/nginx/nginx.conf add:

        ######################################################################################
        #####   Virtual Host Configs
        ######################################################################################

        server {
                listen 127.0.0.1:80;
                server_name 127.0.0.1;

                location /nginx_status {
                        stub_status;
                }
        }



Sources