分类: LINUX
2010-09-21 11:24:26
visible_hostname squid
http_port 192.168.198.77:88 accel vhost vport
cache_peer parent 80 0 no-query originserver name=www
cache_peer i.test.cn parent 80 0 no-query originserver name=i
cache_peer v1.test.cn parent 80 0 no-query originserver name=v1
cache_peer v2.test.cn parent 80 0 no-query originserver name=v2
cache_peer entry.test.cn parent 80 0 no-query originserver name=entry
cache_peer 192.168.198.239 parent 80 0 no-query originserver name=239
cache_peer_domain www
cache_peer_domain v1 v1.test.cn
cache_peer_domain v2 v2.test.cn
cache_peer_domain i i.test.cn
cache_peer_domain entry entry.test.cn
cache_peer_domain 239 192.168.198.239
cache_mem 2048 MB
cache_swap_low 80
cache_swap_high 95
#refresh_pattern -i .jpg$ 1440 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private
acl localhost src 192.168.198.3
acl manager proto cache_object
http_access allow manager localhost
maximum_object_size 20000 KB
maximum_object_size_in_memory 256 KB
cache_dir ufs /usr/local/squid/var/cache 5000 16 256
pid_filename /usr/local/squid/var/logs/squid.pid
access_log /usr/local/squid/var/logs/access.log
cache_log /usr/local/squid/var/logs/cache.log
acl Safe_ports port 80
http_access deny !Safe_ports
http_access allow all
chinaunix网友2010-09-21 16:20:54
很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com