#lib目录下以aspx结尾的页面禁止某些IP访问
location ~ ^/lib/.*content\.(aspx|html)$ {
# 加入IP限制配置文件
include deny_ips.conf; // 被限制的IP文件
allow all;
proxy_pass http://backend;
proxy_redirect off;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
autoindex on;
}