首页 » 服务器 » 正文

squid2.5经典配置文件

#####################################################

visible_hostname cache.sudone.com

#Pattern
refresh_pattern       -i  .htm               1         80%      10      override-expire ignore-reload
refresh_pattern       -i  .html              1         80%      10      override-expire ignore-reload
refresh_pattern       -i  .jsp               1         80%      10      override-expire ignore-reload
refresh_pattern       -i  .swf               360       100%     360     override-expire ignore-reload
refresh_pattern       -i  .flv               360       100%     360     override-expire ignore-reload
refresh_pattern       -i  .wmv               360       100%     360     override-expire ignore-reload
refresh_pattern       -i  .asf               360       100%     360     override-expire ignore-reload
refresh_pattern       -i  .                  1         80%      10      override-expire ignore-reload

http_port 80

acl adminBoxes src 127.0.0.1

cache_access_log /dev/null

maximum_object_size 4 MB
minimum_object_size 1 bytes
maximum_object_size_in_memory 1 MB

cache_dir aufs /data/squid/cache 4096 64 64
cache_mem 1024 MB

acl Host1 dstdomain .sudone.com .abc.com

#####################################################

本文链接地址: squid2.5经典配置文件

转载请注明: 转载自技安后院

No tags for this post.

发表评论