Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: Issue with proxy_pass, request URI's, and upstream servers

$
0
0
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.

Viewing all articles
Browse latest Browse all 4759

Trending Articles