- 论坛徽章:
- 0
|
squid常见错误解答,不定期更新,欢迎大家指正、补充!
我的squid.conf
http_port 3128
cache_dir ufs /webcache 4000 64 128
cache_access_log none
cache_log /dev/null
cache_store_log none
acl share src 192.168.0.0/255.255.255.0
http_access allow share
httpd_accel_port 80
httpd_accel_host virtual
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
error_directory /usr/share/squid/errors/Simplify_Chinese
dns_nameservers 61.137.94.195 202.103.96.112 220.168.121.68
cache_mgr zjjboy@vip.sina.com
maximum_object_size 4096 KB
#上面几个就是说遇到URL中有包含cgi-bin和以https:\\开头的都不要缓存,
#还有asp、cgi、php等动态脚本也不要缓存,
#因为这些脚本通常都是动态更新的,这样数据不同步。
#还有https://开通的不缓存是因为一般我们进行电子商务交易,
#例如银行付款等都是采用这个的,如果把信用卡号什么缓存那不是很危险。
hierarchy_stoplist cgi-bin ?
hierarchy_stoplist -i ^https:\\ ?
acl QUERY urlpath_regex -i cgi-bin \? \.asp \.php \.jsp \.cgi
acl denyssl urlpath_regex -i ^https:\\
no_cache deny QUERY
no_cache deny denyssl
acl sex url_regex -i sex
acl photo urlpath_regex -i \.gif$ \.jpg$
http_access deny photo
http_access deny sex
http_access allow all
为什么在重新启动squid的时候会出现
Stopping squid: 2005/05/12 14:06:59| parseConfigFile: line 19 unrecognized: 'min'mum_object_size_in_memory 0 KB
2005/05/12 14:06:59| squid.conf line 31: http_reply_access allow all
2005/05/12 14:06:59| aclParseAccessLine: ACL name 'all' not found.
2005/05/12 14:06:59| squid.conf line 31: http_reply_access allow all
2005/05/12 14:06:59| aclParseAccessLine: Access line contains no ACL's, skipping
2005/05/12 14:06:59| squid.conf line 32: icp_access deny all
2005/05/12 14:06:59| aclParseAccessLine: ACL name 'all' not found.
2005/05/12 14:06:59| squid.conf line 32: icp_access deny all
2005/05/12 14:06:59| aclParseAccessLine: Access line contains no ACL's, skipping
2005/05/12 14:06:59| squid.conf line 33: reply_body_max_size 0 allow all
2005/05/12 14:06:59| aclParseAccessLine: ACL name 'all' not found.
2005/05/12 14:06:59| squid.conf line 33: reply_body_max_size 0 allow all
2005/05/12 14:06:59| aclParseAccessLine: Access line contains no ACL's, skipping
2005/05/12 14:06:59| squid.conf line 35: snmp_access deny all
2005/05/12 14:06:59| aclParseAccessLine: ACL name 'all' not found.
2005/05/12 14:06:59| squid.conf line 35: snmp_access deny all
2005/05/12 14:06:59| aclParseAccessLine: Access line contains no ACL's, skipping
..................................................这样的提示
我的squid都没有那么多行,为什么还会某一行的错误
另外还我的squid怎么运行两天左右后就不能打开网页了,一定重新启动squid |
|