参考文档
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;
-
}
本文转自 15816815732 51CTO博客,原文链接:http://blog.51cto.com/68686789/1750595