最新消息:

我的squid.conf实例

squid admin 3371浏览 0评论

http_port 80 accel vport
cache_mem 256 MB
maximum_object_size_in_memory 256 KB
cache_dir ufs /data/scache 8192 32 128
maximum_object_size 8192 KB
logformat combined %>a %ui %un [%tl] “%rm %ru HTTP/%rv” %>Hs %<st “%{referer}=””>h” “%{User-Agent}>h” %Ss:%tr
access_log /usr/local/squid3/var/logs/access.log combined
logfile_rotate 6
connect_timeout 3 minutes
read_timeout 3 minutes
request_timeout 3 minutes
client_lifetime 10 minutes
negative_ttl 0 second
hierarchy_stoplist cgi-bin .jsp ? php
visible_hostname gl.trends.com.cn
cache_effective_user www
cache_effective_group www

cache_peer 192.168.1.7 parent 80 0 connect-timeout=120 originserver name=cdn
cache_peer_domain cdn proxy.wxd5981.com

acl safe_ports port 80
acl PURGE method PURGE
acl safe_ip src 127.0.0.1

http_access allow safe_ports
http_access allow PURGE safe_ip
http_access deny all

refresh_pattern -i .html$ 2 100% 2 ignore-reload override-lastmod
refresh_pattern -i .jpg$ 2 100% 2 ignore-reload override-lastmod
refresh_pattern -i .js$ 2 100% 2 ignore-reload override-lastmod
refresh_pattern . 2 100% 2 ignore-reload override-lastmod

 

转载请注明:爱开源 » 我的squid.conf实例

您必须 登录 才能发表评论!