Welcome! Log In Create A New Profile

Advanced

problem with locations for a reverse proxy

Posted by Atlantes 
problem with locations for a reverse proxy
September 09, 2014 02:56PM
Hello,

I have some problems getting the right locations for my reverse proxy.

I have 2 sites. site http://www.site_a.com/ and http://www.site_b.com/ and the reverse proxy is http://www.site_c.com/

if someone goes to the url http://www.site_c.com/ it needs to send the data to http://www.site_a.com/. if the url is http://www.site_c.com/subfolder1/ it needs to send the data to http://www.site_a.com/. For all the other subdomains (http://www.site_c.com/subfolder2/, http://www.site_c.com/subfolder3/ etc.) it needs to send the data to http://www.site_b.com/.

In short
http://www.site_c.com/ -> http://www.site_a.com/
http://www.site_c.com/subfolder1/ -> http://www.site_a.com/
(http://www.site_c.com/* -> http://www.site_b.com/

I can't get it to work. I can get the subfolder1 to work and also the base url (http://www.site_c.com/) but not the http://www.site_c.com/*. It always redirects to the www.site_a.com. Can someone help me with this problem.

I really appreciate any help you can provide.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 185
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