Re: [squid-users] Question about 'default' option for cache_peer

From: Joost de Heer <[email protected]>
Date: Thu, 2 Feb 2006 13:45:03 +0100 (CET)

Kinkie wrote:
> On Thu, 2006-02-02 at 09:21 +0100, Joost de Heer wrote:
>> Hello,
>>
>> How does the 'default' keyword for cache_peer work exactly?
>
> Does this answer your question?
> http://squidwiki.kinkie.it/SquidFaq/TroubleShooting#head-36aedae8f2cc4943850c22bdbff2e781c76ce2f6
>
> Kinkie

What I want to do (and I don't find this answered in the FAQ):

never_direct allow all

cache_peer IP1 parent 8080 0 no-query default
cache_peer IP2 parent 8080 0 no-query
cache_peer IP3 parent 8080 0 no-query default
cache_peer IP4 parent 8080 0 no-query

acl http proto http
acl https method CONNECT
acl all src 0.0.0.0/0.0.0.0

cache_peer_access allow IP1 http
cache_peer_access deny IP1 all
cache_peer_access allow IP2 http
cache_peer_access deny IP2 all
cache_peer_access allow IP3 https
cache_peer_access deny IP3 all
cache_peer_access allow IP4 https
cache_peer_access deny all

I.e. IP1 is default server for http traffic, and IP2 should only be used
when IP1 isn't available, and IP3 is default for https, and IP4 should
only be used if IP3 isn't available.

Joost
Received on Thu Feb 02 2006 - 05:45:08 MST

This archive was generated by hypermail pre-2.1.9 : Wed Mar 01 2006 - 12:00:03 MST