Accelerator for multiple servers

From: bruno pennec <>
Date: Tue, 05 Aug 1997 12:40:53 +0200

I'd like to use squid as a accelerator for multiple
servers with different ports:

Squid must relay requests to a virtual host (by name)on a first IP,
                      and to multiple port on a other IP
I can have a lot of IP.

in fact, i'd like to do

   http_accel host_name1:port1 real_host_name1:real_port1
   http_accel host_name2:port2 real_host_name2:real_port2
   http_accel host_name3:port3 real_host_name3:real_port3
   with host_name(n) on the same IP
   with real_host_name(n) on one or more IP

   but there is only one http_accel...:-(

To do this result, it seems to me i can't do that without the
redirect_program. The problem is to have host and port in

I use squid-1.1.10 with multiple-ports.patch and i tried
3 solutions :

1. Virtual mode

   The URL given to redir contains a IP host, so it prevents me
   to redirect on multiple "real" server

2. Non Virtual Host and httpd_accel_uses_host_header off

   The URL given to redir contain the host and the port of
http_accel, so i can't do anything...

3. Non Virtual Host and httpd_accel_uses_host_header on

   The URL given to redir contain the port of http_accel,
   so i can't redirect on port according to the user request.

   In this case, if i try to access by IP, squid has no response.
   is it correct ?
This problem appears because i use multiple-ports functions,
what about future releases of squid ?

is it a good way, according to future releases of squid,
to patch icp.c to give the incomming port to the redirect_program.


Bruno Pennec EDF - DER -
Received on Tue Aug 05 1997 - 03:46:42 MDT

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