为了能快速了解并处理您的问题,请提供以下基础信息: 面板、插件版本:9.2.0 nginx 1.26.1 问题描述:nginx配置 http 写了两个变量 map $remote_addr $allow_ip { default 0; "10.0.0.0/16" 1; } map $http_user_agent $allow_ua { default 0; ~test 1; } 然后在Server中 判断变量就报错了 [backcolor=rgba(245, 246, 249, 0.5)] location / { if ($allow_ip = "0" || $allow_ua = "0") { return 403; } 相关截图(日志、错误):
|
|