NGINX - Stub Status
From Wiki.IT-Arts.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
- https://nginx.org/en/docs/http/ngx_http_stub_status_module.html
- https://www.nginx.com/blog/monitoring-nginx/
