Re: Change target host in proxy_pass

2017-03-17 Thread Lucas Rolff
gt; Date: Friday, 17 March 2017 at 12.12 To: "nginx@nginx.org<mailto:nginx@nginx.org>" mailto:nginx@nginx.org>> Subject: Change target host in proxy_pass Hello, I have NGINX acting as reverse proxy and I would like to achieve something like this: When I get a request like th

Change target host in proxy_pass

2017-03-17 Thread Tomasz Kapek
Hello, I have NGINX acting as reverse proxy and I would like to achieve something like this: When I get a request like this GET http://app1.mydomain.aa.com/aaa/bbb it should be converted to: GET http://app1.mydomain.bb.com/aaa/bbb so such directive will do the job: proxy_pass http://app1.mydomain