免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2260 | 回复: 1

[proxy] squid 反向代理 经常抱错 [复制链接]

论坛徽章:
0
发表于 2008-07-31 12:20 |显示全部楼层
今天早上突然  网站打开时抱错!   有时刷新后  会变好!
静态网站就没有这个问题





报错信息
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR
The requested URL could not be retrieved

--------------------------------------------------------------------------------

While trying to retrieve the URL: http://acc.test.com/

The following error was encountered:

Unable to forward this request at this time.
This request could not be forwarded to the origin server or to any parent caches. The most likely cause for this error is that:

The cache administrator does not allow this cache to make direct connections to origin servers, and
All configured parent caches are currently unreachable.
Your cache administrator is liuyang@gameocean.com.cn.



--------------------------------------------------------------------------------

Generated Thu, 31 Jul 2008 04:14:43 GMT by baiyou100.cnc2 (squid/2.6.STABLE20)




配置文件
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

http_port 80 vhost vport
hosts_file C:\WINDOWS\system32\drivers\etc\hosts


visible_hostname baiyou100.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 all src 0.0.0.0/0.0.0.0
http_access allow all



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


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 D:\squid\var\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 D:\squid\var\logs\access.log common
cache_log D:\squid\var\logs\cache.log
cache_store_log none


cache.log  抱错
!!!!!!!!!!!!!!!!!!!
2008/07/31 10:22:44| Failed to select source for 'http://acc.test.com/ActiveUserGame.aspx'
2008/07/31 10:22:44|   always_direct = 0
2008/07/31 10:22:44|    never_direct = 0
2008/07/31 10:22:44|        timedout = 0

论坛徽章:
0
发表于 2008-07-31 16:11 |显示全部楼层
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

SACC2019中国系统架构师大会

【数字转型 架构演进】SACC2019中国系统架构师大会
2019年10月31日~11月2日第11届中国系统架构师大会(SACC2019)将在北京隆重召开。四大主线并行的演讲模式,1个主会场、20个技术专场、超千人参与的会议规模,100+来自互联网、金融、制造业、电商等领域的嘉宾阵容,将为广大参会者提供一场最具价值的技术交流盛会。




----------------------------------------

大会官网>>
  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP