How can query string parameters be forwarded through a proxy_pass with nginx?

前端 未结 7 1461
Happy的楠姐
Happy的楠姐 2020-11-27 10:26
upstream apache {
   server 127.0.0.1:8080;
}
server{
   location ~* ^/service/(.*)$ {
      proxy_pass http://apache/$1;
      proxy_redirect off;
   }
 }


        
相关标签:
7条回答
  • 2020-11-27 11:04

    worked with adding $request_uri proxy_pass http://apache/$request_uri;

    0 讨论(0)
提交回复
热议问题