How to setup squid only cache specific domains?
Posted
by
???
on Server Fault
See other posts from Server Fault
or by ???
Published on 2010-12-08T12:12:18Z
Indexed on
2011/03/02
7:26 UTC
Read the original article
Hit count: 593
For example, I want squid
to cache HTTP contents only for *.archive.ubuntu.com
, which is blocked by firewall, and don't cache for other domains.
And, only LAN (192.168.0.0/16) users can access the cached contents, but all users are allowed to access non-cached contents.
User-IP Dest-Domain acl Expect
---------------- ----------------------- ------ -------------------------
192.168.0.0/16 *.archive.ubuntu.com allow Cache Proxy, Fast
192.168.0.0/16 *.other allow Pass Proxy, Slow
Other * allow Pass Proxy, Slow
© Server Fault or respective owner