Re: [squid-users] Virtual hosts + 127.0.0.1 problems

From: Dan Cave <dan@dont-contact.us>
Date: Tue, 25 Jun 2002 15:14:25 +0100

David,

Try using a private virtual IP address on your host for apache and squid

i.e.

ifconfig eth0:0 alias 192.168.1.10

ifconfig -a

set your httpd_accel_host as 192.168.1.10

set your bind address in httpd.conf as

BindAddress 192.168.1.10

Apache will be listening on 192.168.1.10:80

and squid httpd accellerator on

192.168.1.10:squid-port

Try that.

regards

Dan
On Tue, Jun 25, 2002 at 01:56:24PM +0100, David Brown wrote:
> I'm trying to run a virtual host server, with Squid 2.4 (in Accelerator
> mode) and Apache 1.3.
>
> I want to bind Apache to port 80, so that I don't get those annoying :81 or
> :8080 URLs
>
> If I define this in my squid.conf:
>
> http_port 80
> httpd_accel_host 127.0.0.1
> httpd_accel_port 80
>
> and this in my apache.conf
>
> Port 80
> BindAddress 127.0.0.1
>
> That works fine and dandy.. BUT... unfortunately I'm running virtual hosts
> and I need to know what domain the request is for .. so I need to use this
> instead:
>
> httpd_accel_host virtual.
>
> But when I do this, I get these errors: "WARNING: Forwarding loop detected
> for....."
>
> This kinda makes sense, because rather than sending the request to
> 127.0.0.1:80 (under the previous configuration), the request goes back to
> domain-name.com:80 and get's caught again by Squid rather than Apache..
>
> How can I run virtual hosts, yet bind Apache to port 80 ?
>
> Does this make sense ?
>
> TIA
>
Received on Tue Jun 25 2002 - 08:14:42 MDT

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