Nginx reverse proxy in front of corporate proxy

Flinou nginx-forum at
Fri Jun 4 10:20:57 UTC 2021


I did some research and couldn't find anything similar on the forum, sorry
if I'm wrong.

I would like to setup something like :

Client -> -> (corporate
proxy) -> (website to reach)

Doing curl command like 
curl -v -x works fine

I tried something like 

location /test {
            proxy_set_header Host;

The corporate proxy does not allow me to access in this

Rewriting is not, for my use case, a satisfying alternative because of the
302 return code.

Is there any way to achieve this ?

Thank you!


Posted at Nginx Forum:,291767,291767#msg-291767

More information about the nginx mailing list