Re: [squid-users] always_direct and never_direct

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 16 Apr 2001 22:34:12 +0200

always_direct is by default deny.
never_direct is by default deny.

When neither is allow, Squid selects based on the request type and a
number of other factors if a parent should be used or not, and if a
parent could not be reached it will always fall back on direct.

If always_direct is allow then Squid will always go direct to the source
without concidering any peers.

If never_direct is allow then Squid will never attempt to go direct to
the source. Instead it tries very hard to find a parent to send the
request to. If no parent can be found then an error is returned.

--
Henrik Nordstrom
Squid Hacker
Jeremy Lyon wrote:
> 
> Hello all,
> 
> I saw this in the squid.conf file.
> 
> NOTE: There is a similar, but opposite option named
> # 'never_direct'. You need to be aware that "always_direct deny
> # foo" is NOT the same thing as "never_direct allow foo". You
> # may need to use a deny rule to exclude a more-specific case of
> # some other rule.
> 
> What exactly is the difference between "always_direct deny foo" and
> "never_direct allow foo"? The first tells squid not to go directly to
> foo what exactly is the latter saying?
> 
> Thanks!
> Jeremy
> 
>     ---------------------------------------------------------------
> 
>                                 Name: jxlyon.vcf
>               Part 1.2          Type: text/x-vcard
>                             Encoding: 7bit
>                          Description: Card for Jeremy Lyon
Received on Mon Apr 16 2001 - 14:50:56 MDT

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