参考文档
HTTP stub_status 模块
http://nginx.org/en/docs/http/ngx_http_status_module.html
server
{
listen 80;
server_name 127.0.0.1;
deny all;
location /NginxStatus {
stub_status on;
allow 127.0.0.1;
allow A;
allow B;
deny all;
}
access_log off;
}
转载于:https://blog.51cto.com/68686789/1750595