免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1521 | 回复: 4
打印 上一主题 下一主题

squid 救助 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-11-15 10:43 |只看该作者 |倒序浏览
我想用squid 缓存 asp   php  等动态网页。。谁教我怎么做啊。。。

一般静态网页已配置好,可以缓存·!·!:em11: :em11: :em11:

论坛徽章:
0
2 [报告]
发表于 2007-11-15 10:48 |只看该作者
我的系统是red hat  enterprise linux4:em12: :em12:

论坛徽章:
0
3 [报告]
发表于 2007-11-15 13:06 |只看该作者
老大们,怎么连一个说话的都没有,寒心呀~~~

论坛徽章:
0
4 [报告]
发表于 2007-11-15 13:55 |只看该作者
原帖由 ylfxx 于 2007-11-15 10:43 发表
我想用squid 缓存 asp   php  等动态网页。。谁教我怎么做啊。。。

一般静态网页已配置好,可以缓存·!·!:em11: :em11: :em11:


動態網頁若是被 cache 了, 那怎樣動態呢 ?

squid.conf 內這區段自己看看改改:


  1. #  TAG: hierarchy_stoplist
  2. #       A list of words which, if found in a URL, cause the object to
  3. #       be handled directly by this cache.  In other words, use this
  4. #       to not query neighbor caches for certain objects.  You may
  5. #       list this option multiple times.
  6. #We recommend you to use at least the following line.
  7. hierarchy_stoplist cgi-bin ?

  8. #  TAG: no_cache
  9. #       A list of ACL elements which, if matched, cause the request to
  10. #       not be satisfied from the cache and the reply to not be cached.
  11. #       In other words, use this to force certain objects to never be cached.
  12. #
  13. #       You must use the word 'DENY' to indicate the ACL names which should
  14. #       NOT be cached.
  15. #
  16. #We recommend you to use the following two lines.
  17. acl QUERY urlpath_regex cgi-bin \?
  18. no_cache deny QUERY
复制代码


--

论坛徽章:
0
5 [报告]
发表于 2007-11-15 14:45 |只看该作者
上面写的是禁止缓存的,我都设置不禁止。。但还是不行。。

refresh_pattern -i .asp 1440 90% 129600 reload-into-ims
refresh_pattern -i .php 1440 90% 129600 reload-into-ims


上面两条也加了。。不行~~

继续求助。。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP