[SQU] More about Accelerating multiple web servers.

From: Raúl Espiga <webmaster@dont-contact.us>
Date: Tue, 17 Oct 2000 09:44:58 +0200

Hi all,

Using Squid for NT4

Schema for Accelerate 3 web servers:
====================================
Squid IP --------------> 192.168.14.2
Server1 IP ----------------> 192.168.14.61
Server2 IP ----------------> 192.168.14.62
Server3 IP ----------------> 192.168.14.63
IPs added to the squid machine ----> 192.168.14.71/72/73

What i'm trying is to use the 71/72/73 IPs as host header and using a perl
script stablish a relationship betwen IPs i.e.: 192.168.14.71 <--->
192.168.14.61

Squid.conf
----------
http_port 80
# forward incoming requests to 192.168.14.61, port 80
httpd_accel_host virtual
httpd_accel_uses_host_header on
redirector_program c:\squid\redirector.pl
httpd_accel_port 80
httpd_accel_with_proxy on
acl all src 0.0.0.0/0.0.0.0
acl myNet src 192.0.0.0/255.255.255.0
# since we want to try get accelerated pages through peers, and we
# want to cache the results, we remove the no_cache and always_direct
# options
# Allow requests when they are to the accelerated machine AND to the
# right port
http_access allow acceleratedHost acceleratedPort
http_access allow myNet
http_access deny all
----------------------------

redirector.pl
-------------
$|=1;
while(<>)

  s%192.168.14.61%192.168.14.71%;
  s%192.168.14.62%192.168.14.72%;
  s%192.168.14.63%192.168.14.73%;
} continue

  print;
}
-------------

This system doesn't work.

What's wrong???, please i need some help.

Thanks for your aid.
---------------------------
Raúl Espiga Cogorro
Director Técnico
www.artemisa.com
CS2 Informática, S.L.
webmaster@cs2informatica.es
---------------------------

--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Tue Oct 17 2000 - 22:22:05 MDT

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