[H-GEN] Prevent squid caching objects on local webserver
Bruce Campbell
bc at humbug.org.au
Fri May 4 00:56:32 EDT 2001
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Please observe the list's charter. ]
[ Worthwhile understanding: http://www.humbug.org.au/netiquette.html ]
On Fri, 4 May 2001, Ian Pulsford wrote:
> To prevent squid caching web pages from 192.168.1.1 should this do the
> trick?
>
> acl localserver url_regex ^http://192.168.1.1/
> no_cache deny localserver
A better method would be:
# dst for destination IP, matches IP address irrespective of
# hostname.
acl localserver dst 192.168.1.1
no_cache deny localserver
The url_regex only matches requests of the form:
http://192.168.1.1/yadda/yadda
and will not match:
http://my.local.server.hostname/yadda/yadda
--
Bruce. | BOFH
Infinite Monkeys. Infinite Keyboards. I see no Shakespeare. | HUMBUG
Usenet may or may not be an implementation of RFC2795. | PAN
--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.
More information about the General
mailing list