Re: Preventing caching of local domain.

From: Bernd P. Ziller <bziller@dont-contact.us>
Date: Wed, 12 Nov 1997 16:20:22 +0100 (MET)

> > > I would like to have our squid not caching URL's in our local domain.
> > > What I did was to put my local domain name in my cache_stoplist, but it
> > > doesn't look a very good solution (URL's from outside my local domain can
> > > contain its name in them). Is it possible to do it more cleverly ?

  cache_stoplist http://server.your.domain/

There shouldn't be many URLs containing 'http://...' which are not
from your local server. But you might use

  cache_stoplist_pattern ^http://server\.your\.domain/

to be absolutely sure. Or to catch all your local servers:

  cache_stoplist_pattern/i ^(http|ftp)://[a-z]+\.your\.domain/

and

  cache_stoplist_pattern ^(http|ftp)://128\.178\.[0-9]+\.[0-9]+/

Regards,

-- 
   Bernd                  bziller@ba-stuttgart.de
-------------------------------------------------
      http://www.ba-stuttgart.de/~bziller/
  Perry Rhodan - Blind Guardian - Morwen   Pages
 Panama Erpressung Treasury AK-47 Hacker Khaddafi
     Peking Kennedy Legion of Doom plutonium
  fissionable cryptographic Ft. Bragg jihad BATF
Received on Wed Nov 12 1997 - 07:24:29 MST

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