Time for action – configuring Squid to switch peer relationship
For example, let's say we have configured sibling.example.com
as a sibling proxy server but sibling.example.com
allows us to forward requests to .edu
domains, even if there are cache misses. So, we can have the following configuration:
cache_peer parent.example.com parent 3128 3130 default proxy-only cache_peer sibling.example.com sibling 3128 3130 proxy-only neighbor_type_domain sibling.example.com parent .edu
In accordance with the previous configuration, we can fetch cache misses for .edu
domains using sibling.example.com
.
What just happened?
In this section, we learned to switch the peer relationship, from sibling to parent, dynamically for certain domains.
Controlling request redirects ...
Get Squid Proxy Server 3.1 Beginner's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.