• # squid conf etc/squid.conf
  • # Created by http://www.wdlinux.cn
  • # Last Updated 2010.11.20
  • - ###
  • cache_effective_user squid
  • cache_effective_group squid
  • tcp_recv_bufsize 65535 bytes
  • icp_port 0
  • visible_hostname wdcdn
  • http_port 80 vhost vport
  • - #domains
  • cache_peer 123.abc.com parent 80 0 no-query originserver name=123abccom
  • - #peer_domain
  • cache_peer_domain 123abccom 123.abc.com
  • - #acl
  • acl local src 127.0.0.1
  • acl Manager proto cache_object
  • acl purge method PURGE
  • http_access allow Manager local purge
  • http_access deny Manager purge
  • acl alls src all
  • http_access allow alls
  • - ###cache,dir
  • cache_log /www/wdlinux/squid/var/logs/cache.log
  • access_log /www/wdlinux/squid/var/logs/access.log squid
  • cache_dir ufs /www/wdlinux/squid/var/cache/ 10000 16 256
  • maximum_object_size 1024 KB
  • maximum_object_size_in_memory 1024 KB
  • cache_mem 512 MB
  • cache_swap_low 80
  • cache_swap_high 90
  • ipcache_size 512
  • ipcache_low 90
  • ipcache_high 95
  • fqdncache_size 512
  • - ### timeout
  • connect_timeout 1 minute
  • peer_connect_timeout 30 seconds
  • request_timeout 2 minutes
  • persistent_request_timeout 30 seconds
  • dns_children 3
  • hierarchy_stoplist cgi-bin ?
  • - #refresh_pattern
  • refresh_pattern ^ftp: 1440 20% 10080
  • refresh_pattern ^gopher: 1440 0% 1440
  • refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
  • refresh_pattern -i \.jpg$ 43200 50% 86400
  • refresh_pattern -i \.png$ 43200 50% 86400
  • refresh_pattern -i \.css$ 43200 50% 86400
  • refresh_pattern -i \.js$ 43200 50% 86400
  • refresh_pattern -i \.xml$ 43200 50% 86400
  • refresh_pattern -i \.htm$ 43200 50% 86400
  • refresh_pattern -i \.html$ 43200 50% 86400
  • refresh_pattern . 0 20% 4320
  • - #header off
  • via off
  • reply_header_access Via deny all
  • reply_header_access Server deny all 复制代码---------------------------------------------------

貌似 他这个配置文件写的有错误啊。
假如我用123.abc.com 来 cache www.163.com 的数据。在他的后台设置就竟然是这样的。。。。