Re: Questions about virtual hosting, and proxying

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 16 Mar 1998 23:10:00 +0100

Running a accelerator and server on the same machine is tricky, but
possible. As you discovered (and others before you) you can't run the
accelerator on a different port
* It can be hard to configure virtual hosts
* Redirects show the real port used, skipping the accelerator.

The trick is to use different interfaces for Squid and your web server.
Use for example loopback for the web server and ethernet for Squid.

squid.conf:
tcp_incoming_address your.official.ip.address

Apache:
BindAddress 127.0.0.1

Both squid and your web server should be configured to show the official
host name (visible-hostname in squid.conf, ServerName and the virtual
host definitions in Apache) .

---
Henrik Nordström
Andy Steingruebl wrote:
> Unfortunately, it does not modify the Host header.  When the
> unmodified Host: header gets sent to the webserver, the webserver
> doesn't recognize the Host: as one of its virtual hosts.
Received on Mon Mar 16 1998 - 14:30:09 MST

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