NGINX - stub status

From wiki.1001solutions.net
Revision as of 10:08, 1 May 2020 by Z (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



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