Hm, so I think I can make my question a bit clearer. The configuration below works:
#upstream conHTTPS {
# server p1.com:7443;
# }
location /portal {
proxy_pass https://p1.com:7443/arcgis;
proxy_set_header X-Forwarded-Host nlb.com;
}
In this case, I'm not using an upstream server and am simply saying send requests to https://nlb.com/portal to https://p1.com:7443/arcgis/
However, the following configuration does not work:
upstream conHTTPS {
server p1.com:7443;
}
location /portal {
proxy_pass https://conHTTPS/arcgis;
proxy_set_header X-Forwarded-Host nlb.com;
}
It strips off the port from the upstream server and sends the request from https://nlb.com/portal to https://p1.com/arcgis. That is my main issue.
#upstream conHTTPS {
# server p1.com:7443;
# }
location /portal {
proxy_pass https://p1.com:7443/arcgis;
proxy_set_header X-Forwarded-Host nlb.com;
}
In this case, I'm not using an upstream server and am simply saying send requests to https://nlb.com/portal to https://p1.com:7443/arcgis/
However, the following configuration does not work:
upstream conHTTPS {
server p1.com:7443;
}
location /portal {
proxy_pass https://conHTTPS/arcgis;
proxy_set_header X-Forwarded-Host nlb.com;
}
It strips off the port from the upstream server and sends the request from https://nlb.com/portal to https://p1.com/arcgis. That is my main issue.