NGINX - Stub Status: Difference between revisions
From IT-Arts.net
No edit summary |
m Text replacement - "Category:Post-It" to "Category:Wiki" |
||
| Line 1: | Line 1: | ||
[[Category: | [[Category:Wiki]] | ||
Revision as of 09:50, 9 December 2025
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/
