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

Reply via email to