Re: [squid-users] reverse-proxy for multiple domains

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 26 Feb 2004 10:57:46 +0100 (CET)

On Thu, 26 Feb 2004 martin.mueller@stadt.wolfsburg.de wrote:

> ich tried to configure squid as a reverse proxy for multiple domains.

Which Squid version?

> httpd_accel_host virtual
> httpd_accel_port 0

Why httpd_accel_port 0?

And are you sure you want httpd_accel_host virtual? This is not about
domain-based virtual hosts but IP based virtual hosts.

> httpd_accel_single_host off
> http_accel_with_proxy off
> httpd_accel_uses_host_header on

Ok,

> In the hosts-file i put the ip of the webserver i want to reach. it looks
> likes this:
>
> <IP-of-the-web-server> <hostname-of-the-web-server>

The hostname should be the hostname the clients requests (or what is
logged in access.log), not the actual hostname.

> i tested the squid with one webserver and only changed the
> httpd_accel-settings an everything went fine.
>
> i don't know why squid isn't using the /etc/hosts entries, has anybody an
> explanation?

It does for me.

Maybe you are using a redirector disturbing things?

Regards
Henrik
Received on Thu Feb 26 2004 - 02:57:54 MST

This archive was generated by hypermail pre-2.1.9 : Mon Mar 01 2004 - 12:00:03 MST