Welcome! Log In Create A New Profile

Advanced

How to proxy_pass a redirect chain (Multiple domains)

Posted by BudaPajamas 
How to proxy_pass a redirect chain (Multiple domains)
November 06, 2017 09:40AM
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?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 126
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready