- 论坛徽章:
- 0
|
本帖最后由 mygod100 于 2014-12-29 09:55 编辑
woxizishen 发表于 2014-12-27 16:57
cache_peer squid_high parent 3128 0 no-query no-digest no-netdb-exchange
允许通过邻居访 ...
1. 这两台独立运作时正常的,测试时用squidclient分别可以单独获取可以共同访问的163首页(不好意思论坛没权限发表URL,下用163COM代替):
squid_low:- squidclient -p 3128 -h squid_low 163COM
- HTTP/1.0 302 Moved Temporarily
- Server: Cdn Cache Server V2.0
- Date: Mon, 29 Dec 2014 01:23:15 GMT
- Content-Length: 0
- Location: 163COM
- X-Cache: MISS from squid_low
- X-Cache-Lookup: MISS from squid_low:3128
- Via: 1.0 squid_low:3128 (squid/2.6.STABLE21)
- Proxy-Connection: close
复制代码 squid_high:- squidclient -p 3128 -h squid_high 163COM
- HTTP/1.0 302 Moved Temporarily
- Server: Cdn Cache Server V2.0
- Date: Mon, 29 Dec 2014 01:22:33 GMT
- Content-Length: 0
- Location: 163COM
- X-Cache: MISS from squid_high
- X-Cache-Lookup: MISS from squid_high:3128
- Via: 1.0 squid_low (squid/3.1.10)
- Connection: close
复制代码 2. cache_peer_access squid_high allow route_vps_domain
允许通过邻居访问这些网址。
cache_peer_access squid_high deny !route_vps_domain
拒绝通过邻居访问这些网址外的。
这些让您晕的地方主要是想保证有且仅有在route_vps_domain中的域名可以通过这个通道(squid_low=>squid_high)访问,而其它域名的数据仍然是按没有cache_peer的方式各自走原来的通道访问。 |
|