Operating System - Linux
1829086 Members
2395 Online
109986 Solutions
New Discussion

Re: question about squid.conf

 
SOLVED
Go to solution
'chris'
Super Advisor

question about squid.conf

hi

I need to exclude some webseites by squid from proxy caching.

but what's the difference between:

acl EXCLUDE www.domain.net
no_cache deny EXCLUDE

and

acl EXCLUDE dstdomain www.domain.net
always_direct allow EXCLUDE

at squid.conf ?

is it not the same thing an does the same job ?

I have squid-2.5.STABLE4-0 installed on SUSE 8.2
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: question about squid.conf

One says don't cache the site.

The second says don't access the website.

Seems like two different functions.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
'chris'
Super Advisor

Re: question about squid.conf

hi Steven

I use the second one and I have access to this
websites via squid

I think, always_direct means DON'T CACHE and forward directly to the webserver

greetings
chris
Alexander Chuzhoy
Honored Contributor
Solution

Re: question about squid.conf

You can use the never_direct access list in squid.conf to specify
which requests must be forwarded to your parent cache outside the
firewall, and the always_direct access list to specify which requests
must not be forwarded. For example, if Squid must connect directly to
all servers that end with mydomain.com, but must use the parent for
all others, you would write:

acl INSIDE dstdomain .mydomain.com
always_direct allow INSIDE
never_direct allow all



use the no_cache access list to make Squid never cache any
response:

acl all src 0/0
no_cache deny all