Re: [squid-users] cache_peer question

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 06 Nov 2013 09:33:32 +1300

On 2013-11-06 03:43, Brendan Kearney wrote:
> I use:
>
> cache_peer peer.domain.tld sibling 3128 4827 htcp=no-clr
> cache_peer 127.0.0.1 parent 8080 7 no-query no-digest
> login=PASSTHRU
> ...
> always_direct allow ThisACL
> always_direct deny all
> ...
> never_direct deny ThisACL
> never_direct allow all
>
> always_direct will push the request without it going to the parent.
> never_direct will force the request to go to the parent.

Small correction.
  "never_direct allow" simply blocks the local proxy connecting to the
origin server via DNS lookups.

This setup works because the parent is allowed to be used by the default
cache_peer_access settings and FIRST_UP_PARENT algorithm is the default
selection method for Squid (so the sibling does not get used as
preferred peer).

Amos
Received on Wed Nov 06 2013 - 09:53:26 MST

This archive was generated by hypermail 2.2.0 : Wed Nov 06 2013 - 12:00:08 MST