Online Book Reader

Home Category

Squid_ The Definitive Guide - Duane Wessels [197]

By Root 2116 0
virtual here.

When this directive is set, Squid disables ICP and rejects proxy-HTTP requests unless you also enable httpd_accel_with_proxy.

Syntax

httpd_accel_host hostname|virtual

Default

No default

Example

httpd_accel_host virtual

Related

httpd_accel_port, httpd_accel_single_host, httpd_accel_with_proxy, httpd_accel_uses_host_header, emulate_httpd_log

Name

httpd_accel_port

Synopsis

This is the TCP port number to which accelerated/intercepted requests are sent. In most cases, you should leave it set to port 80. If you are accelerating/intercepting more than one port, set it to 0. That is similar to the virtual setting for httpd_accel_host.

Syntax

httpd_accel_port port-number

Default

httpd_accel_port 80

Example

httpd_accel_port 0

Related

httpd_accel_host, httpd_accel_single_host, httpd_accel_with_proxy, httpd_accel_uses_host_header

Name

httpd_accel_single_host

Synopsis

When enabled, this directive makes Squid forward all accelerated/intercepted requests to the httpd_accel_host address. See Section 15.2.6.

* * *

Warning

If you enable this directive and httpd_accel_with_proxy, Squid may become susceptible to cache poisoning. Please read Chapter 15 thoroughly before running such a configuration.

* * *

Syntax

httpd_accel_single_host on|off

Default

httpd_accel_single_host off

Example

httpd_accel_single_host on

Related

httpd_accel_host, httpd_accel_port, httpd_accel_with_proxy, httpd_accel_uses_host_header

Name

httpd_accel_with_proxy

Synopsis

Enabling HTTP acceleration/interception normally disables proxy-HTTP caching. That is, Squid refuses to handle proxy requests (with a full URI) when in HTTP server accelerator mode. Although I don't recommend it, you can force Squid to accept both types of requests by enabling this directive.

Syntax

httpd_accel_with_proxy on|off

Default

httpd_accel_with_proxy off

Example

httpd_accel_with_proxy on

Related

httpd_accel_host, httpd_accel_port, httpd_accel_single_host, httpd_accel_uses_host_header

Name

httpd_accel_uses_host_header

Synopsis

When this directive is enabled, Squid uses a request's Host header when rewriting accelerated/intercepted requests. When disabled, Squid uses either the origin server's IP address or the httpd_accel_host value.

You should probably enable httpd_accel_uses_host_header when running Squid as an HTTP-intercepting proxy. If Squid is a surrogate (accelerator), you only need to enable this directive if the backend server is configured for virtual hosting.

Syntax

httpd_accel_uses_host_header on|off

Default

httpd_accel_uses_host_header off

Example

httpd_accel_uses_host_header on

Related

httpd_accel_host, httpd_accel_port, httpd_accel_single_host, httpd_accel_with_proxy

Name

dns_testnames

Synopsis

Squid uses these hostnames to test the DNS before starting. If Squid can't resolve any of these names, it prints an error and refuses to run. If the default list doesn't seem to work on your network, try listing some local hostnames instead.

Syntax

dns_testnames hostname ...

Default

dns_testnames netscape.com internic.net nlanr.net microsoft.com

Example

dns_testnames yahoo.com example.com squid-cache.org

Name

logfile_rotate

Synopsis

You must periodically signal Squid to rotate its log files. If you don't, they will increase in size and eventually fill up the disk partition. This directive specifies how many old copies of each log file to keep around. See Section 13.7 for more information.

Syntax

logfile_rotate N

Default

logfile_rotate 10

Example

logfile_rotate 5

Related

cache_access_log, cache_log, cache_store_log, cache_swap_log, useragent_log, referer_log

Name

append_domain

Synopsis

This directive helps Squid turn single-component hostnames into fully qualified domain names. For example, http://www/ becomes www.example.com/. This is especially important if you are participating in a cache hierarchy.

Syntax

append_domain .domain.name

Default

No default

Example

append_domain

Return Main Page Previous Page Next Page

®Online Book Reader