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

Follow redirect 301 and proxy_pass last location found

$
0
0
Hello guys,

I'm trying to resolve this problem:

First URL: http://first-domain.com/?some_parameters=123

Return Header Location (301) at this another url:
http://second-domain.com/?some_other_parameters=456

Second Url Header Location (301) at the next url:
http://third-domain.com/?some_other_other_parameters=789

OK, I want to proxy pass this last url http://third-domain.com/?some_other_other_parameters=789 mantaining the ip of my reverse proxy server.

This is the first configuration that I tried, that should follow 301:

https://dpaste.de/aeNw/raw

Another kind of configuration that I've tried is this one:

https://dpaste.de/Xet5/raw


Can you help me to find the right solution?

Thank you very much in advance.

Cheers.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



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