Load Balancing

From: John Reilly <dicey.jpr@dont-contact.us>
Date: 11 Apr 2000 08:28:00 -0700

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

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

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:31:38 MDT

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