Search squid archive

Re: Re: Squid3 Reverse Proxy based on url path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux