Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3286465
  • 博文数量: 266
  • 博客积分: 3081
  • 博客等级: 中校
  • 技术积分: 2640
  • 用 户 组: 普通用户
  • 注册时间: 2005-07-04 10:35
个人简介

没什么好介绍的!穷屌丝一个~

文章分类

全部博文(266)

文章存档

2021年(3)

2020年(1)

2019年(2)

2016年(5)

2015年(1)

2014年(1)

2011年(9)

2010年(16)

2009年(31)

2008年(58)

2007年(111)

2006年(2)

2005年(26)

我的朋友

分类: LINUX

2009-06-18 22:07:20

未证实的配置文件:

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


阅读(1385) | 评论(0) | 转发(0) |
0

上一篇:linux网桥

下一篇:xcopy文件差异拷贝

给主人留下些什么吧!~~