squid 无法访问www.cib.com.cn 兴业银行首页,不是用代理可以访问。急!在线等待。
用户反应,无法访问www.cib.com.cn 首页。但不使用squid代理能够正常上网。请问这是什么原因。之前网页能够正常访问。squid的版本是squid-2.5.STABLE14
squid.conf配置没有问题。
提出CURL运行返回信息如下:
$ curl -I -x 10.86.64.1:3128 http://www.cib.com.cn
HTTP/1.0 302 Moved Temporarily
Date: Sun, 21 Apr 2013 20:36:12 GMT
Server: Apache
Location: http://www.cib.com.cn/netbank/cn/index.html
Content-Length: 227
Content-Type: text/html; charset=iso-8859-1
Age: 38373
X-Via: 1.1 fysx15:80 (Cdn Cache Server V2.0), 1.1 fjnd41:9090 (Cdn Cache Server V2.0)
X-Cache: MISS from blue.it
Proxy-Connection: keep-alive
$ curl -I -x 10.86.64.1:3128 http://www.cib.com.cn/netbank/cn/index.html
HTTP/1.0 200 OK
Date: Sun, 21 Apr 2013 19:51:32 GMT
Server: Apache
Last-Modified: Sun, 21 Apr 2013 06:29:39 GMT
ETag: "a1c2-14d3c-13a23ac0"
Accept-Ranges: bytes
Content-Length: 85308
Content-Type: text/html
Age: 41067
X-Via: 1.1 fjnd41:9090 (Cdn Cache Server V2.0)
X-Cache: MISS from blue.it
Proxy-Connection: keep-alive
尝试清除个别对象:
$ /usr/local/squid/bin/squidclient -h 10.86.64.1 -p 3128 -m PURGE http://www.cib.com.cn/netbank/cn/index.html
HTTP/1.0 200 OK
Server: squid/2.5.STABLE14
Mime-Version: 1.0
Date: Mon, 22 Apr 2013 06:56:08 GMT
Content-Length: 0
$ /usr/local/squid/bin/squidclient -h 10.86.64.1 -p 3128 -m PURGE http://www.cib.com.cn
HTTP/1.0 404 Not Found
Server: squid/2.5.STABLE14
Mime-Version: 1.0
Date: Mon, 22 Apr 2013 06:56:55 GMT
Content-Length: 0
之前运行清除能够正常访问,一段时间后又不能访问,请问是什么原因?
急!!!请大家帮忙想想,谢谢。 有人了解嘛??? 本帖最后由 wenhq 于 2013-04-23 09:07 编辑
看了你贴的信息发现那个主页是做了redirect了。
直接访问redirect后的主页可以么?
还是看看squid的日志。 回复 3# wenhq
访问重定向的网址:http://www.cib.com.cn/netbank/cn/index.html
仍然无法访问。提示无法显示该页面。查看过日志文件没有任何报错或问题。
回复 4# linblue
那多试几台机器。都走squid。看问题一样么?
回复 5# wenhq
嗯,公司上网走到全是squid。试过很多台电脑都无法登这个网站。不走squid的话是能够正常登入的。回事302 Moved Temporarily 问题嘛???
是不是你的squid代理配置不缓存404错误了? 回复 7# wenhq
额。。。那这个要怎么检查啊??
先看你的squid.conf配置。 回复 9# wenhq
squidd 版本是:squid-2.5.STABLE14
squid.conf:
visible_hostname squid.it
http_port 10.86.64.1:3128
icp_port 3130
cache_mem 1300 MB
cache_swap_low 80
cache_swap_high 85
maximum_object_size 512 KB
cache_dir ufs /squid/var/logs 200000MB 16 256
cache_access_log /squid/var/logs/access.log
cache_log /squid/var/logs/cache.log
cache_store_log none
pid_filename /var/run/squid.pid
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
acl all src 0/0
acl safe_ports port 80 21 443 563 70 210 280 488 591 777
acl denymac arp "/usr/local/squid/etc/denymac.txt"
http_access deny denymac
http_access allow safe_ports
http_access allow all
cache_effective_user squid
cache_effective_group squid
cache_mgr blue.lin@***.com
coredump_dir /var/spool/squid
logfile_rotate 21
log_fqdn on
strip_query_terms on
dns_children 29
acl localhost src 10.86.64.1 10.86.66.61
acl purge method PURGE
http_access allow localhost purge
http_access deny purge
页:
[1]
2