February 2011
Intermediate to advanced
332 pages
9h 3m
English
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
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.
The requests and responses for a web document may pass through a series of ...
Read now
Unlock full access