Re: accelerator and squid-2.2.STABLE5.ignore_host_header.patch

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 16 Dec 1999 02:29:43 +0100

Miquel van Smoorenburg wrote:
>
> Hello [Henrik ;)]
>
> It seems that the squid-2.2.STABLE5.ignore_host_header.patch from
> Henrik and the HTTP accelerator functionality don't go together well.

It should, if the accelerator is set up properly. To support virtual
domains the accelerator must be configured with
"httpd_accel_uses_host_header on", and any redirector must return unique
URL's for each domain.

How have you configured Squid?

> 1. Make it so that the Host: header is always used if it is an
> accelerator request

Then you are most likely attacking the problem from the wrong end. Your
request chain is already fucked up if this makes a difference.

> 2. Make it so that the Host: header is used if it is an accelerator
> request AND redir_rewrites_host is off

Same here.

> Now I don't quite understand what redir_rewrites_host is for
> exactly.

It is mostly for people building accelerators with multiple (virtual)
domains. Most other redirector uses wants the opposite (to have
redirection rewrite the host header) in order to be able to redirect to
a virtual domain/server.

--
Henrik Nordstrom
Squid hacker
Received on Wed Dec 15 1999 - 18:51:03 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:49:54 MST