Welcome! Log In Create A New Profile

Advanced

How to transparently proxy to upstream?

Posted by ogghi 
How to transparently proxy to upstream?
November 22, 2018 09:57AM
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
Re: How to transparently proxy to upstream?
November 23, 2018 08:41AM
Nobody with an idea here? Am I the only one?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 94
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready