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
|