Re: Multiple parents on one host

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 25 Mar 1999 11:12:42 +0100

Marc Haber wrote:

> My parents (a squid and a junkbuster) are running on the same machine
> but are accessed through different CNAMEs.
>
> junkbuster CNAME machine.provider
> squid CNAME machine.provider

fine.

> >If your parents uses different host names, then cache_peer_access can be
> >used to limit each parent to the protocols it should handle.
>
> I haven't found out yet how to do this. The logs that squid generates
> are quite irritating.

I do not exactly remember what kind of setup you required, but this
example should send all HTTP traffic to junkbuster and all else to
Squid. Assuming junkbuster runs on port 8080, and Squid on 3128:

# Configure peers
cache_peer junkbuster.provider parent 8080 0 no-query
cache_peer squid.provider parent 3128 3130 no-query

# Send all http to junkbuster, else to Squid
acl http protocol http
cache_peer_access junkbuster.provider allow http
cache_peer_access squid.provider deny http

# And if the above is enforced at all times
never_direct allow all

(Both parents are configured with no-query as it is of very limited use
to use ICP when there only is one available selection)

---
Henrik Nordstrom
Spare time Squid hacker
Received on Thu Mar 25 1999 - 03:40:26 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:45:25 MST