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

How to transparently proxy to upstream?

$
0
0
Hi there,

I created a similat question once, but was not clear!

Therefore my setup:
nginx 1.10.3-0ubuntu0.16.04.3

Backend server (any web server running SSL)

I am trying to get this URI: https://mynginx.domain.net/upstream
to reach the upstream on https://upstream.domain.net/

location /upstream/ {
proxy_pass https://upstream.domain.net:443/;
proxy_set_header Host $host;
}

This then makes a 302 and I see the direct upstream server.
Now imagine I want to expose just the proxy, how can I get all requests to the context forwarded to the upstream (and get handled properly)?

Thanks
David

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>