Chinaunix

标题: squid 3.0 报错 [打印本页]

作者: liuyang_25    时间: 2008-08-10 16:45
标题: squid 3.0 报错
那位大侠帮看看  什么错误


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
作者: liuhanzhao    时间: 2008-08-11 15:22
那个不是错误,只是squid给出的警告reload-into-ims这个参数会将client端响应的no-cache or ``reload''请求变成If-Modified-Since,而这样做是违背http标准的,所以,squid会给出警告




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2