请教 nginx deny 优先级的问题。

1次阅读

共计 186 个字符,预计需要花费 1 分钟才能阅读完成。

http{
deny 192.168.6.8;

server {
listen 443 ssl;
http2 on;
server_name example.com;

if ($http_user_agent ~* “curl”) {
return 406;
}
}
}
客户端 192.168.6.8 使用 curl -I example.com 时,返回 406,难道 if 比 http 段的 deny ip 的优先级还高吗?

正文完
 0