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 %
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-ssd方案和trafficserver的interim层的异同
- 简易http Proxy搭建
- squid中cache_peer和cache_peer_domain的处理规则和顺序
- Squid squidclient 命令介绍
- nginx 缓存过期的影响 和 优先级
- nginx配置总结
转载请注明:爱开源 » 我的squid.conf实例
转载请注明:爱开源 » 我的squid.conf实例