Cache peer configuration for squid

From Notes_Wiki
Revision as of 09:43, 8 November 2012 by Saurabh (talk | contribs) (Created page with "=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 paren...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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