Correct proxy path in nginx.conf

前端 未结 3 1257
自闭症患者
自闭症患者 2020-12-05 14:10

we have two servers, A and B. Server A is accessed worldwide. He has nginx installed. That\'s what I have in conf:

location /test {
  proxy_pass http://local         


        
3条回答
  •  长情又很酷
    2020-12-05 14:33

    try to add as specified here http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass:

          proxy_pass http://localserver.com/;
    

提交回复
热议问题