Hello,
If I have a simple reverse proxy configuration e.g.
server {
listen 80 default_server;
server_name myserver;
proxy_set_header Host $host;
location /blueprint/servlet/ {
proxy_pass http://backendserver:40980/blueprint/servlet/;
}
}
then the Host header sent to the backendserver is not what I would expect. It does not send (what I would like it to send)
Host: myserver
but instead it sends
Host: myserver:40980
and there seems to be no way around it. Even if I explicitly specify a port in proxy_set_header Host then it's always setting the port where proxy_pass is making the request to, and not the port specified in proxy_set_header.
Is there any way around this?