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 |
Get Squid: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.