<<Back

HTTPD-ACCELERATOR OPTIONS

Tag Namehttpd_accel_host
Usagehttpd_accel_host hostname(IP)|virtual

Description
This tag is used to set the hostname of the accelerated server. It is possible to have only one destination server and hence there can be only one occurrence of this line. If you are going to accelerate more than one server, or transparently cache traffic, you will have to use the word virtual instead of a hostname here

Defaultnone

Example
httpd_accel_host 172.16.1.115
httpd_accel_host virtual
httpd_accel_host CACHE

Caution
Enabling httpd_accel_host disables proxy-caching and ICP. If you want these features enabled also, then set the httpd_accel_with_proxy' option.

 

Tag Namehttpd_accel_port
Usagehttpd_accel_port port

Description
Accelerated requests can only be forwarded to one port: There is no table that associates accelerated hosts and a destination port. Squid will connect to the port that you set the httpd_accel_port value to. When acting as a front-end for a web server on the local machine, you will set up the web server to listen for connections on a different port (8000, for example), and set this squid.conf option to match the same value. If, on the other hand, you are forwarding requests to a set of slow backend servers, they will almost certainly be listening to port 80 (the default web-server port), and this option will need to be set to 80. If you want virtual port support then specify the port as "0"

Defaultnone

Example
httpd_accel_port 80
httpd_accel_port 8000

 

Tag Namehttpd_accel_single_host
Usagehttpd_accel_single_host on|off

Description
If you are running Squid as an accelerator and have a single backend server then set this to on. This causes Squid to forward the request to this server regardless of what any redirectors or Host headers says.

Leave this at off if you have multiple backend servers, and use a redirector (or host table or private DNS) to map the requests to the appropriate backend servers. See also redirect_rewrites_host_header

Defaulthttpd_accel_single_host off

Caution
Note that the mapping needs to be a 1-1 mapping between requested and backend (from redirector) domain names or caching will fail, as caching is performed using the URL returned from the redirector.

 

Tag Namehttpd_accel_with_proxy
Usagehttpd_accel_with_proxy on|off

Description
If you use the httpd_accel_host option, Squid will stop recognizing cache requests. So that your cache can function both as an accelerator and as a web cache, you will need to set the httpd_accel_with_proxy option to on.

Defaulthttpd_accel_with_proxy off

 

Tag Namehttpd_accel_uses_host_header
Usagehttpd_accel_uses_host_header on|off

Description
HTTP/1.1 requests include a Host: header, which is basically the hostname from the URL. Squid can be an accelerator for different HTTP servers by looking at this header. However, Squid does NOT check the value of the Host header, so it opens a big security hole. It is recommended that this option remain disabled unless having good understanding.

However, It is needed to enable this option if Squid run as a transparent proxy. Otherwise, virtual servers, which require the Host: header will not be properly cached. For detailed information, Click here

Defaulthttpd_accel_uses_host_header off

Caution
If Squid runs as a transparent proxy, It is needed to enable this option.

 

<<Back
 

All rights reserved.
All trademarks used in this document are owned by their respective companies. This document makes no ownership claim of any trademark(s). If you wish to have your trademark removed from this document, please contact the copyright holder. No disrespect is meant by any use of other companies’ trademarks in this document.
Note: The pages on this website cannot be duplicated on to another site. Copying and usage of the contents for personal and corporate purposes is acceptable. In near future, it will be released under the GNU Free Documentation License.
© ViSolve.com 2002 
Created By: squid@visolve.comDate: May 15,2002
Revision No:0.0 
Modified ByDate