分享

squid反向代理作web加速cache_peer 设置

 thy 2009-07-08

1)cache_peer  设置与其它cache机的通讯,也处理加速方式的核心设置
cache_peer  hostname  type  http-port  icp-port  [options]
no-query  不发送icp信息包到此机器,一般设置原始主机用(如果是cache机,则需要互相发送icp包验证存在性)
originserver  指定此机为原始内容服务器,用于加速模式
type:    either  'parent'(父亲),  'sibling'(兄弟),  or  'multicast'(广播——最好不用).原始服务器配成parent

2)cache_peer_domain  限制/指定用户访问的邻居cache域,类似cache_peer_access,cache_peer_domain  europe-cache.org  parent  .ch  .dk  .fr    以fr/dk/ch结尾的域名访问europe缓存

3)cache_peer_access  cache-host  allow|deny  [!]aclname  类似acl,对cache机器进行访问控制,一般不用。例子:cache_peer_access  192.168.0.249  allow  HTTP

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多