Search squid archive

RE: Squid not caching at all - (Ubuntu 10, Apache2 and Squid3)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Below is the configuration. I have only pasted what we have changed in the
default configuration of Squid


============================================================
# some restriction definitions
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl CONNECT method CONNECT


acl sitedomin dstdomin 192.168.1.15
http_access allow sitedomin

http_access allow manager

# Define the HTTP port
http_port 192.168.1.15:80 vhost vport=8080 defaultsite=192.168.1.15
# Specify the local and remote peers
cache_peer 127.0.0.1 parent 8080 0 no-query originserver name=server1

# Tell squid which domains to forward to which servers
acl sitedomains dstdomain .example.com 
cache_peer_access server1 allow sitedomains

# Do not cache cgi-bin, ? urls, posts, etc.
hierarchy_stoplist cgi-bin ?

acl apache rep_header Server ^Apache
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern .              60       100%     4320

negative_ttl 0 minutes

# Cache properties
cache_mem 1024 MB
maximum_object_size_in_memory 2048 KB
cache_replacement_policy heap LRU
memory_replacement_policy heap LRU
cache_dir ufs /var/spool/squid 20000 16 256
access_log /var/log/squid/access.log squid
hosts_file /etc/hosts


======================================================



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux