nginx的proxy_pass
2020-07-15 本文已影响0人
罗不错
- 连接 abc/api/test => http://127.0.0.1:7001/api/test
location /api/ {
proxy_pass http://127.0.0.1:7001;
}
- 切断 abc/api/test => http://127.0.0.1:7001/test
location /api/ {
proxy_pass http://127.0.0.1:7001/;
}