Re: Load Balancing

From: John Reilly <dicey@dont-contact.us>
Date: 11 Apr 2000 08:46:38 -0700

On Tue, 11 April 2000, John Reilly wrote:
Extra comment below.

> Hi all,
> I have a small problem here - I am trying to use squid to act as a load balancer to a number of http servers, i.e. www.blah.com is squid which does a redirect to www1.blah.com or www2.blah.com
>
> My setup is
>
> external squid (squid now
> client -----> does a redirect)
>
>
> external
> client ------> a http server
>
>
> I've tryed setting squid to be a httpd_accelerator and use a perl script to redirect to one of two hosts.
>
> squid is running on www.blah.com:3128
>
> http server 1 - www1.blah.com:80
> http server 2 - www2.blah.com:80
>
> I setup 2 virtual interfaces on www which the redirector script re-writes IP addresses to www1 and www2 hostnames in the URLs.
>
> setting are:
> httpd_accel_host virtual
> httpd_accel_port 80

Should have mentioned also, I tryed to explicitly forward to a single host and got the same behaviour.
i.e.

httpd_accel_host www1.blah.com
httpd_accel_port 80

The requests were still sent to www.blah.com:80

>
> The requests to http://www.blah.com:3128/ are being forwarded to http://www.blah.com/ and the redirector script seems to never be hit.
>
> I've followed the advice in the FAQ, and searched through the mail archives, but to no avail.
>
> Any help appreciated.
>
> Thanks,
> John

--------------------------------------------------
John Reilly - dicey@linuxfreak.com
--------------------------------------------------
Visit http://www.oceanfree.net to get your free e-mail account and use our unique Irish Internet directory
Received on Tue Apr 11 2000 - 09:50:17 MDT

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