Proxy Pass Functionality

Discuss and get help to configure CacheGuard to protect Web servers
Post Reply
fredy.erne@gmx.ch
Posts: 1
Joined: 21 Aug 2016 10:43

Proxy Pass Functionality

Post by fredy.erne@gmx.ch »

Hi,

I'm looking for some Kind of proxy_pass configuration, as example I have only one external URL, but do have multiple subsites. I like to "Forward" those subsites to different internal URLs:

http://www.example.com -> server1.internal.com
http://www.example.com/test1 -> server2.internal.com/test1
http://www.example.com/test2 -> server3.internal.com/test1

is there any way doing this with cahcheguard?

Thanks and Regards
Fredy
User avatar
david
Posts: 163
Joined: 08 Aug 2015 20:38

Re: Proxy Pass Functionality

Post by david »

Dear Fredy

CacheGuard does not support the configuration you requested because such a configuration requires that Web applications be written in respect of some constraints (usage of relative links for instance).

Please keep in mind that CG is a generic reverse proxy with some constraints that help avoiding complex issues while remaining compatible with all Web application servers and specific applications.

I suggest that you use the following configuration instead (if possible):

http://test1.example.com -> <ip-address-1>
http://test2.example.com -> <ip-address-2>
http://test3.example.com -> <ip-address-3>

Where <ip-address-?> could be real or virtual IP addresses on the backend Web servers. Then you can use virtual hosts on backend Web servers to get the required configuration.

Best Regards,
David Janeway
CacheGuard Technical Team
https://www.cacheguard.com
Post Reply