HTTP port
As we learned that Squid will be accepting HTTP requests on behalf of the web servers sitting behind it, the most important configuration directive is http_port
. We need to set the HTTP port with the appropriate options. Let's have a look at the general format of http_port
for configuring Squid in the reverse proxy mode.
http_port 80 accel [options]
So, we need to specify a port number, such as 80. Apart from the port, we need to use the option accel
, which will tell Squid that port 80 will be used for server acceleration. Also, there are additional options that are required to properly configure Squid so that it can communicate with the web servers.
Note
Please note that while configuring Squid in surrogate mode, we need to specify at least one option from defaultsite
, vhost
, or vport
. We should also note that the CONNECT
requests are blocked from receiving accel
flagged ports.
HTTP options in reverse proxy mode
Let's have a look at the other options that can be used with the http_port...