让nginx服务器上的某个页面只有指定ip才能访问,只需要在server内添加如下字段即可.
server
{
location /nginxallstatus {
stub_status on;
allow 60.195.252.106;
access_log on;
deny all;
}
}
如若转载,请注明出处:https://www.ozabc.com/jianzhan/24530.html
让nginx服务器上的某个页面只有指定ip才能访问,只需要在server内添加如下字段即可.
server
{
location /nginxallstatus {
stub_status on;
allow 60.195.252.106;
access_log on;
deny all;
}
}
如若转载,请注明出处:https://www.ozabc.com/jianzhan/24530.html
Copyright © OZABC Powered www.ozabc.com