- 连接 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/;
}
location /api/ {
proxy_pass http://127.0.0.1:7001;
}
location /api/ {
proxy_pass http://127.0.0.1:7001/;
}
本文标题:nginx的proxy_pass
本文链接:https://www.haomeiwen.com/subject/pxgfhktx.html
网友评论