免费注册 查看新帖 |

Chinaunix

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

[proxy] squid 3.0 报错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-08-10 16:45 |只看该作者 |倒序浏览
那位大侠帮看看  什么错误


2008/08/10 12:28:03| Processing Configuration File: /usr/local/squid/etc/squid.conf (depth 0)
2008/08/10 12:28:03| WARNING: use of 'reload-into-ims' in 'refresh_pattern' violates HTTP
root@ubuntu-liuyang:/var/squid#  WARNING: use of 'reload-into-ims' in 'refresh_pattern' violates HTTP


配置文件

ttp_port 80 vhost vport


visible_hostname test.cnc2
cache_mgr liuyang@gameocean.com.cn

cache_swap_low 90
cache_swap_high 95

refresh_pattern -i .html 30 100% 60 reload-into-ims
refresh_pattern -i .shtml 30 100% 60 reload-into-ims
refresh_pattern -i .htm 30 100% 60 reload-into-ims
refresh_pattern -i .gif 60 100% 120 reload-into-ims
refresh_pattern -i .swf 60 100% 120 reload-into-ims
refresh_pattern -i .jpg 60 100% 120 reload-into-ims
refresh_pattern -i .png 60 100% 120 reload-into-ims
refresh_pattern -i .bmp 60 100% 120 reload-into-ims
refresh_pattern -i .psd 60 100% 120 reload-into-ims
refresh_pattern -i .aspx 60 20% 120 reload-into-ims

acl mydomain dstdomain .test.com
deny_info http://laqia.test.com mydomain
http_access deny !mydomain

acl 111all src 0.0.0.0/0.0.0.0
http_access allow 111all

acl tianya referer_regex -i tianya
http_access deny tianya
deny_info tianya


acl OverConnLimit maxconn 30
http_access deny OverConnLimit

acl myip dst 192.168.1.1
http_access deny !myip


cache_peer 218.11.132.17  parent 80 0 no-query round-robin max-conn=32 originserver

cache_mem 1024 MB
maximum_object_size_in_memory 1024 KB
maximum_object_size 20480 KB
memory_replacement_policy lru
cache_replacement_policy lru

cache_dir ufs /var/squid/cache 4096 16 256

logformat squid  %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt

logfile_rotate 10

cache_access_log /var/logs/access.log common
cache_log /var/logs/cache.log
cache_store_log none

论坛徽章:
0
2 [报告]
发表于 2008-08-11 15:22 |只看该作者
那个不是错误,只是squid给出的警告reload-into-ims这个参数会将client端响应的no-cache or ``reload''请求变成If-Modified-Since,而这样做是违背http标准的,所以,squid会给出警告
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP