轉載大佬的 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;
}
轉載大佬的 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;
}