squid2.5经典配置文件

十二月 23rd, 2009 Posted in Squid | 阅读次数: 165 次

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

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

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

#base
pid_filename var/logs/squid.pid
#dns_nameservers 127.0.0.1
cache_effective_user squid
cache_effective_group squid
httpd_accel_host virtual
httpd_accel_single_host off
httpd_accel_port 80
httpd_accel_uses_host_header on
httpd_accel_with_proxy on
icp_port 0
strip_query_terms off

#net
negative_ttl 10 seconds
negative_dns_ttl 30 minutes
read_timeout 3 minutes
persistent_request_timeout 60 seconds
pconn_timeout 30 seconds
client_persistent_connections on
server_persistent_connections on
pipeline_prefetch on
half_closed_clients off
shutdown_lifetime 120 seconds

#mem
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
cache_swap_low 85
cache_swap_high 95
memory_pools_limit 50 MB
client_db off

#acl
acl acceleratedProtocol protocol HTTP
acl acceleratedPort port 80
acl all src 0.0.0.0/0.0.0.0
http_access allow acceleratedProtocol acceleratedPort Host1
acl purge method PURGE
http_access allow adminBoxes purge
http_access deny purge
acl manager proto cache_object
http_access allow manager adminBoxes
http_access deny all

#log
emulate_httpd_log on
cache_store_log none

相关日志:

Tags:

4 Responses to “squid2.5经典配置文件”

  1. Get Rid of Yeast Infection Says:

    Recommended Sites…

    [...]below you can check out my recommended links page http://www.yeastinfectiontreatmentcure.net/links/ with some great sites that I think you should go visit[...]…


  2. Resources Says:

    Related Websites…

    [...]here are some other links to sites that we find everyday so here are some popular sites we like today[...]…


  3. Gebze Motorlu kurye Says:

    Gebze Motorlu kurye…

    [...]高进波博客 – 零起点一步配置你的linux服务器,linux博客,linux教程,web架构 » Blog Archive » squid2.5经典配置文件[...]…


  4. legal advice online Says:

    Websites worth visiting……

    [...]here are some links to sites that we link to because we think they are worth visiting[...]………


留下您的脚印