Re: [squid-users] help on always_redirect

From: sqlcamel <sqlcamel_at_yahoo.com.hk>
Date: Wed, 18 Nov 2009 13:48:41 +0800

Amos Jeffries:
> sqlcamel wrote:
>> Hello,
>>
>> in squid.conf:
>>
>> # TAG: always_direct
>> # Usage: always_direct allow|deny [!]aclname ...
>> #
>> # Here you can use ACL elements to specify requests which should
>> # ALWAYS be forwarded by Squid to the origin servers without using
>> # any peers. For example, to always directly forward requests for
>> # local servers ignoring any parents or siblings you may have use
>> # something like:
>> #
>> # acl local-servers dstdomain my.domain.net
>> # always_direct allow local-servers
>>
>>
>> So, what's "origin servers" by definition in Squid?
>
> The origin server of a website. The machine referenced in DNS with A or
> AAAA records when the domain name is looked up.
>
>> In reverse-proxy mode, does it mean the peers which have an originserver
>> option?
>
> No. It in reverse-proxy mode it means force non-reverse proxy DNS
> handling and ignore all cache_peer settings in squid.conf.
>

Thanks a lot Amos.
so if I set this directive in squid.conf for reverse proxy:

never_direct allow all

does it mean squid will ignore all DNS handling and pass only the
traffic to the configured peers?

-- 
Yahoo/Skype: sqlcamel
Received on Wed Nov 18 2009 - 05:47:29 MST

This archive was generated by hypermail 2.2.0 : Wed Nov 18 2009 - 12:00:04 MST