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
Received on Thu Mar 08 2012 - 11:43:29 MST
This archive was generated by hypermail 2.2.0 : Thu Mar 08 2012 - 12:00:02 MST