免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1305 | 回复: 0
打印 上一主题 下一主题

squid3.0配置?? [复制链接]

论坛徽章:
1
操作系统版块每日发帖之星
日期:2016-04-19 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-06-18 22:07 |只看该作者 |倒序浏览
未证实的配置文件:
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 192.168.0.0/16
acl manager proto cache_object
http_access allow manager localhost
http_access allow localhost
http_access allow all
forwarded_for off
http_port 3128 transparent
cache_mem 256 MB
cache_swap_low 85
cache_swap_high 93
maximum_object_size 20480 KB
minimum_object_size 0 KB
maximum_object_size_in_memory 32 KB
cache_dir aufs /opt/app/squid/var/cache 10000 32 256
access_log /opt/app/squid/var/logs/access.log
#access_log /dev/null
cache_log /dev/null
cache_store_log none
acl QUERY urlpath_regex cgi-bin .php .cgi .avi .wmv .rm .ram .mpg .mpeg .zip .exe .rar
cache deny QUERY
half_closed_clients off
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i .gif         10      30%     30  ignore-reload
refresh_pattern -i .jpg         10      30%     30  ignore-reload
refresh_pattern -i .png         10      30%     30  ignore-reload
refresh_pattern -i .css         10      30%     30  ignore-reload
refresh_pattern -i .swf         10      30%     30  ignore-reload
refresh_pattern -i .cur         10      30%     30  ignore-reload
refresh_pattern -i .js$         10      30%     30  ignore-reload
refresh_pattern -i .htm         1       30%     20
refresh_pattern -i .html        1       30%     20
refresh_pattern .               1       20%     30
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
cache_effective_user squid
cache_effective_group squid
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/5338/showart_1969320.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP