Time for action – adding backend web servers
We learned about cache_peer
in detail in the previous chapter and previously, we saw two options specifically meant for Squid in reverse proxy mode. Now, let's see a few examples showing the usage of the cache_peer
directive to add backend web servers.
cache_peer 127.0.0.1 parent 80 0 no-query no-digest originserver cache_peer local_ip_of_web_server parent 80 no-query originserver forcedomain=www.example.com
What just happened?
We learned to add backend web servers in our Squid configuration file as cache peers or neighbors so that Squid can forward them the requests which it receives from clients.
Support for surrogate protocol
The requests and responses for a web document may pass through a series of ...
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.