dstdomain /is/ dstdomain.
That's the ACL type you're creating. Read over the documentation in
squid.conf for the acl directive, it will be very helpful, I expect.
In short, when creating an ACL it is of the form:
acl name type match_exp
Where:
name=An arbitrary name for the ACL--you can call it whatever you want.
type=One of the predefined ACL types, like src, dstdomain, etc.
match_exp=Is the expression (regular expression or a simple matche
depending on type) that this ACL will match.
So in your case:
acl yahoo dstdomain .yahoo.com
Where yahoo is an arbitrarily chosen name (you could call it Bob if you
prefer), dstdomain means that Squid will be looking at the destination
domain name, and .yahoo.com is the domain name to look for. If the
destination domain of a request is somewhere in yahoo.com
(mail.yahoo.com, shoes.yahoo.com, search.yahoo.com, etc.) it will be
matched...then your no_cache directive tells squid that requests
matching the given ACL are not to be cached.
Pons, Eric wrote:
> Forgive my ignorance, but I am having a hard time writing the proper
> command for the following:**
> *10.3 how do I configure Squid not to cache a specific server? *
> acl someserver dstdomain .someserver.com
> no_cache deny someserver
> Say I did not want squid to cache yahoo.com
> what is the exact proper syntax I would use. I have tried different
> combinations... but nothing seems to work. I am guessing that
> "someserver" would be yahoo and ".someserver.com" would be yahoo.com but
> "dstdomain" is giving me a hard time. I thought it would be some like
> yahoo.com, but it is not. Could someone please help?
--
Joe Cooper <joe@swelltech.com>
Affordable Web Caching Proxy Appliances
http://www.swelltech.com
Received on Mon Sep 17 2001 - 13:05:11 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:02:13 MST