음.. parent로 hier_direct를 돌릴순 있는데
그럼 자기 자신 혼자 사용중에는 자신이 parent가 아닌건가?
4.1 How do I join a cache hierarchy? To place your cache in a hierarchy, use the cache_host directive in squid.conf to specify the parent and sibling nodes. For example, the following squid.conf file on childcache.example.com configures its cache to retrieve data from one parent cache and two sibling caches: # squid.conf - On the host: childcache.example.com # # Format is: hostname type http_port udp_port # cache_host parentcache.example.com parent 3128 3130 cache_host childcache2.example.com sibling 3128 3130 cache_host childcache3.example.com sibling 3128 3130 The cache_host_domain directive allows you to specify that certain caches siblings or parents for certain domains: # squid.conf - On the host: sv.cache.nlanr.net # # Format is: hostname type http_port udp_port # cache_host electraglide.geog.unsw.edu.au parent 3128 3130 cache_host cache1.nzgate.net.nz parent 3128 3130 cache_host pb.cache.nlanr.net parent 3128 3130 cache_host it.cache.nlanr.net parent 3128 3130 cache_host sd.cache.nlanr.net parent 3128 3130 cache_host uc.cache.nlanr.net sibling 3128 3130 cache_host bo.cache.nlanr.net sibling 3128 3130 cache_host_domain electraglide.geog.unsw.edu.au .au cache_host_domain cache1.nzgate.net.nz .au .aq .fj .nz cache_host_domain pb.cache.nlanr.net .uk .de .fr .no .se .it cache_host_domain it.cache.nlanr.net .uk .de .fr .no .se .it cache_host_domain sd.cache.nlanr.net .mx .za .mu .zm The configuration above indicates that the cache will use pb.cache.nlanr.net and it.cache.nlanr.net for domains uk, de, fr, no, se and it, sd.cache.nlanr.net for domains mx, za, mu and zm, and cache1.nzgate.net.nz for domains au, aq, fj, and nz. |
[링크 : http://www.comfsm.fm/computing/squid/FAQ-4.html]
[링크 : https://www.christianschenk.org/blog/using-a-parent-proxy-with-squid/]
'프로그램 사용 > squid' 카테고리의 다른 글
squid hierarchy와 cache (0) | 2019.04.04 |
---|---|
squid storeid... 에러 (0) | 2019.04.03 |
squid storeid (0) | 2019.04.03 |
squid storeurl_rewrite (0) | 2019.04.02 |
lynx proxy (0) | 2019.03.27 |