Re: [squid-users] Re: Squid3 Reverse Proxy based on url path

From: Henrik Nordström <henrik_at_henriknordstrom.net>
Date: Sat, 22 May 2010 15:50:30 +0200

fre 2010-05-21 klockan 14:24 -0700 skrev rainolf:

> webportal.domain.com --------------------> portal page on localhost ( href
> to the following internal servers )
> x1.domain.com ------------> 1rst internal server
> x2.domain.com ------------> 2nd internal server

Not entirely sure what you mean here.. is x1 and x2 external domains, or
the names of the internal servers? I am assuming it's the external
domains visible to the visitor.

> webportal.domain.com/hrm -----------------> 3rd internal server that host
> /hrm folder
> webportal.domain.com/fax -----------------> 4th internal server that host
> /fax folder

Ok.

acl webportal dstdomain webportal.domain.com
acl fax urlpath_regex ^/fax
acl hrm urlpath_regex ^/hrm
acl x1 dstsomain x1.domain.com
acl x2 dstdomain x2.domain.com

cache_peer 127.0.0.1 parent 80 0 no-query originserver name=webportal login=PASS
cache_peer_access webportal allow webportal !hrm !fax

cache_peer a.b.c.d parent 80 0 no-query originserver name=x1 login=PASS
cache_peer_access x1 allow x1

cache_peer a.b.c.e parent 80 0 no-query originserver name=x2 login=PASS
cache_peer_access x2 allow x2

cache_peer a.b.c.f parent 80 0 no-query originserver name=hrm login=PASS
cache_peer_access hrm allow webportal hrm

cache_peer a.b.c.g parent 80 0 no-query originserver name=fax login=PASS
cache_peer_access fax allow webportal fax

Regards
Henrik
Received on Sat May 22 2010 - 13:50:35 MDT

This archive was generated by hypermail 2.2.0 : Sun May 23 2010 - 12:00:32 MDT