Re: [squid-users] prefer parent peer

From: rihad <rihad@dont-contact.us>
Date: Fri, 16 Dec 2005 12:43:16 +0400

Mark Elsen wrote:
>>Is there a way to configure Squid 2 to always first try fetching through
>>the (only) parent, and if that fails, then go direct?
>>
>>Here's what I have now, and this fails miserably if x.x.x.x is down:
>>
>>cache_peer x.x.x.x parent 3128 3130 no-query default
>>never_direct allow all
>>
>
>
> Use :
>
> always_direct deny all
>
> instead of
>
> never_direct allow all
>

Thanks, I tried this too, but it does not seem to work under 2.5.STABLE2
on FreeBSD. sockstat -c does not mention the cache_peer's address in any
current connections, and access.log says all requests are made directly
to origin servers: DIRECT/66.249.93.99 (see the docs on the log format
http://www.squid-cache.org/Doc/FAQ/FAQ-6.html#ss6.6)
Received on Fri Dec 16 2005 - 01:43:21 MST

This archive was generated by hypermail pre-2.1.9 : Sat Dec 31 2005 - 12:00:02 MST