Re: [squid-users] Redirection by backend server

From: Henrik Nordstrom <[email protected]>
Date: Mon, 08 Jan 2007 14:08:52 +0100

mån 2007-01-08 klockan 17:23 +0530 skrev Sameer Joshi:
> I also tried:
>
> Replacing 'cache_peer www.abc.com parent 80 0 originserver', by
> cache_peer 1.2.3.4 parent 80 0 originserver www.abc.com
> cache_peer 5.6.7.8 parent 80 0 originserver www.xyz.com
>
> Result is that for both www.abc.com and www.xyz.com, i m served with
> www.abc.com

Did you also adjust cache_peer_access accordingly?

cache_peer 1.2.3.4 parent 80 0 originserver name=abc
acl abc_domain dstdomain abc.mydomain.com .abc.com
cache_peer_access abc alloc abc_domain

cache_peer 5.6.7.8 parent 80 0 originserver name=xyz
acl xyz_domain dstdomain xyz.mydomain.com .xyz.com
cache_peer_access xyz allow xyz_domain

Not sure what the abc.mydomain.com vs www.abc.com split is about.. what
Squid cares about is the domain requiested in the URL.

Regards
Henrik

Received on Mon Jan 08 2007 - 06:09:02 MST

This archive was generated by hypermail pre-2.1.9 : Thu Feb 01 2007 - 12:00:01 MST