nginx禁止ip访问目录

问答中心分类: Nginxnginx禁止ip访问目录
ipan asked 7 年 ago
nginx 反向代理 tomact ,须设置某IP能访问某个目录,这个conf改如何写

1 Answers
oneinstack answered 7 年 ago
参考:

  location /nginx_status {
    stub_status on;
    access_log off;
    allow 127.0.0.1;
    deny all;
    }