RE: [squid-users] Multiple httpd_accel_host

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 11 Nov 2003 21:15:03 +0100 (CET)

On Tue, 11 Nov 2003, Spyros Ioakim wrote:

> But if someone ask http://195.10.10.1 I need a httpd_accel_host to point to
> 195.10.10.1 so that something will be displayed. Otherwise he will get a
> connection refused or something...

If someone request http://195.10.10.1 and this is something you want to
support then you need to use a redirector helper which rewrites this into
the domain you want to return, or use the cache_peer forwarding method of
selecting which server to use (this method is more obvious in Squid-3,
where it is the default mode of operation for accelerators.. Squid-2.5
lacks some features needed for doing this correctly).

The httpd_accel_host name is only used if someone uses a old client not
sending a Host: header indicating which domain he is asking for. This is
not the same as requesting by IP address using a modern Host:
header aware browser.

> Am I getting this right or is it just plain science fiction ;-?

No fiction ;-)

Regards
Henrik
Received on Tue Nov 11 2003 - 13:15:12 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:21:14 MST