美文网首页
nginx的proxy_pass

nginx的proxy_pass

作者: 罗不错 | 来源:发表于2020-07-15 16:44 被阅读0次
    1. 连接 abc/api/test => http://127.0.0.1:7001/api/test
     location /api/ {
                proxy_pass  http://127.0.0.1:7001;
      }
    
    
    1. 切断 abc/api/test => http://127.0.0.1:7001/test
     location /api/ {
                proxy_pass  http://127.0.0.1:7001/;
      }
    

    相关文章

      网友评论

          本文标题:nginx的proxy_pass

          本文链接:https://www.haomeiwen.com/subject/pxgfhktx.html