Difference between revisions of "Cache peer configuration for squid"
From Notes_Wiki
m |
m |
||
Line 1: | Line 1: | ||
<yambe:breadcrumb self="Cache peer">Squid proxy server configuration|Squid</yambe:breadcrumb> | |||
=Cache peer configuration for squid= | =Cache peer configuration for squid= | ||
Line 13: | Line 14: | ||
never_direct deny all | never_direct deny all | ||
</pre> | </pre> | ||
Revision as of 11:45, 2 December 2012
<yambe:breadcrumb self="Cache peer">Squid proxy server configuration|Squid</yambe:breadcrumb>
Cache peer configuration for squid
Configuring cache peer for some specific domains
We can configure parent proxy for few specific domains. This can be useful if parent proxy is registered with special access on those domains. For example proxy server IP can be registered on some journal websites and we may want to use parent proxy for opening only those journal websites. All other websites can be opened directly by proxy using its own Internet connection.
Sample configuration which can achieve above requirement is:
cache_peer 10.4.3.204 parent 8080 7 no-query no-digest no-netdb-exchange prefer_direct on acl journal-sites dstdomain ieeexplore.ieee.org acm.org springerlink.com pubs.asce.org sciencedirect.com epw.in never_direct allow journal-sites never_direct deny all