nginx判断路径是否含有某个参数做判断
转载大佬的 https://www.cnblogs.com/wxchun/p/17039552.html 配置:
location ^~ /api/{
if($query_string ~ "type=1" ){
proxy_pass http://127.0.0.1:8080;
break;
}
proxy_pass http://127.0.0.1:8089;
}

浙公网安备 33010602011771号