What is reverse proxy mode?
In previous chapters, we have learned to use Squid to cache the web documents locally so that we can enhance the user experience. This is done by serving the cached web documents from the proxy server, which is generally on the same local network as the clients. So, we can visualize this behavior using the following diagram:
As we can see in the previous diagram, we try to cache the responses received from various web servers on the Internet and then use those cached responses to serve the subsequent requests for the same web documents. In short, we are using Squid to improve the performance of our Internet connection.
Exploring reverse proxy mode
Now, consider the scenario from a point of view of a web server. Let's say that the website www.example.com
is hosted on a web server and there are tens of thousands of clients browsing the website. So, in the scenario where a website gets way too many visitors, the web server will be overloaded and we would have to distribute...