Hey guys,
How can I set nginx to reverse proxy a redirect chain?
I mean, my problem looks like that:
First URL: http://first-domain.com/?parameters=987654321
(The first domain will use JS redirect to: http://second-domain.com/?parameters=987654321
The second domain will use 301 redirect to: http://third-domain.com/?parameters=987654321
My question is:
How can I use proxy_pass (or_something_else) to send the user to http://third-domain.com/?parameters=987654321 mantaining the ip of my reverse proxy?
How can I set nginx to reverse proxy a redirect chain?
I mean, my problem looks like that:
First URL: http://first-domain.com/?parameters=987654321
(The first domain will use JS redirect to: http://second-domain.com/?parameters=987654321
The second domain will use 301 redirect to: http://third-domain.com/?parameters=987654321
My question is:
How can I use proxy_pass (or_something_else) to send the user to http://third-domain.com/?parameters=987654321 mantaining the ip of my reverse proxy?