I have used and configured apache
for proxy pass
and proxy pass reverse
multiple times with X-Forwarded-Host
. I tried configuring same with nginx
and it works out to be more customisable and easy one.
server {
listen 80;
server_name pandurangpatil.com;
location /myapp {
proxy_set_header X-Forwarded-Host $host;
proxy_pass http://localhost:8080/myapp;
}
.
.
.
}