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

How to proxy_pass a redirect chain (Multiple domains)

$
0
0
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?

Viewing all articles
Browse latest Browse all 4759

Trending Articles



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