找回密码
 入学

QQ登录

只需一步,快速开始

查看: 3871|回复: 0

windows下squid无法缓存动态请求的解决办法

[复制链接]
发表于 2011-4-22 05:15:42 | 显示全部楼层 |阅读模式
找了几天了,一直找不到原因,squid 只能缓存静态页面,动态页面,但如果有传值,如:test.asp?id=5则报错如下


  1. ERROR
  2. The requested URL could not be retrieved

  3. --------------------------------------------------------------------------------

  4. While trying to retrieve the URL: http://www.029263.com/test.asp?

  5. The following error was encountered:

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

  8. The cache administrator does not allow this cache to make direct connections to origin servers, and
  9. All configured parent caches are currently unreachable.
  10. Your cache administrator is webmaster.



  11. --------------------------------------------------------------------------------

  12. Generated Thu, 21 Apr 2011 21:13:17 GMT by fei76squid (squid/2.7.STABLE8)
复制代码

终于测试出结果了
在配置文件里加上一句
never_direct allow all
就ok了,结果对了,不知道办法是否可行,有待观察中


您需要登录后才可以回帖 登录 | 入学

本版积分规则

QQ|Archiver|手机版|小黑屋|校园天空成立于2004年2月24日 ( 陕ICP备08000078号-8 )

GMT+8, 2025-6-26 07:32 , Processed in 0.087698 second(s), 17 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表