Hello!
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 -> https://my-nginx.com -> http://corporate-proxy.com (corporate proxy) -> https://website.com (website to reach)
Doing curl command like
curl -v https://website.com -x http://corporate-proxy.com works fine
I tried something like
location /test {
proxy_set_header Host https://website.com;
proxy_pass http://corporate-proxy.com:3128;
}
The corporate proxy does not allow me to access https://website.com in this case.
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!
Antoine