Joining a cache hierarchy

In the previous chapters, we learned about the cache_peer directive in the Squid configuration file and how to use cache_peer to add other proxy servers in our configuration file, so that our proxy server can forward requests to neighbors. However, we only had a brief overview of the options used along with cache_peer. In this chapter, we'll explore cache_peer and its various options in detail.

The following is the format to add a proxy server in a configuration file using cache_peer:

cache_peer HOSTNAME TYPE HTTP_PORT ICP_OR_HTCP_PORT [OPTIONS]

The parameter HOSTNAME is the IP address or domain name of the proxy server we are trying to add to the configuration file. The TYPE parameter takes one of the values parent, sibling ...

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.