工作,学习,生活,这里将会有一些记录. 备用域名:http://meisw.wdlinux.cn 注册 | 登陆

squid.conf

cache_effective_user squid
cache_effective_group squid
tcp_recv_bufsize 65535 bytes

icp_port 0
visible_hostname localhost
http_port 80 vhost vport

acl local src 127.0.0.1
acl Manager proto cache_object
http_access allow Manager local
http_access deny Manager
acl alls src all
http_access allow alls

maximum_object_size 1024000 KB
maximum_object_size_in_memory 1024 KB
cache_mem 20480 MB
cache_swap_low  80
cache_swap_high 90

ipcache_size 1024
ipcache_low 90
ipcache_high 95
fqdncache_size 1024

connect_timeout 1 minute
peer_connect_timeout 30 seconds
request_timeout 2 minutes
persistent_request_timeout 30 seconds


via off
reply_header_access Via deny all
reply_header_access Server deny all

-------------------------------------

cache_peer 192.168.0.10 parent 80 0 no-query originserver name=a
cache_peer 192.168.0.11 parent 80 0 no-query originserver name=b

cache_peer_domain a www.a.com
cache_peer_domain b www.b.com

acl all src 0.0.0.0/0.0.0.0
http_access allow all

cache_peer_access a allow all
cache_peer_access b allow all

« 上一篇 | 下一篇 »

Trackbacks

点击获得Trackback地址,Encode: UTF-8

发表评论

评论内容 (必填):