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

From: Brian <hiryuu@dont-contact.us>
Date: Tue, 25 Jun 2002 10:57:24 -0400

See the 'uses host header' directive.

On Tuesday 25 June 2002 08:56 am, 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:57:26 MDT

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