Search squid archive

Re: How to order the configuration?

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

 



On 8/03/2012 11:35 p.m., tangyi wrote:
cache_peer ip.of.server1 parent 80 0 no-query originserver name=server_1
cache_peer_domain server_1 www.a.com .b.com
cache_peer ip.of.server2 parent 80 0 no-query originserver name=server_2
cache_peer_domain server_2 www.b.com .a.com
If configure like this,www.b.com will be forwarded to the server1 originserver.
A bug or how to resolve this?

With cache_peer_access which allows boolean logic decisions in ACL form.

eg..
   acl Awww dstdomain www.a.example.com
   acl Bwww dstdomain www.b.example.com
   acl B dstdomain .b.example.com

  cache_peer_access server_1 allow Awww
  cache_peer_access server_1 allow B !Bwww


Amos


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

  Powered by Linux