[squid-users] Accelerator and Redirector

From: <sampei02@dont-contact.us>
Date: Thu, 25 Mar 2004 09:56:48 +0100

I'm using Squid Accelerator (A) for 2 servers : one in my internal network
and the other in public network.
My Squid.conf is :

cache_peer 10.0.0.5 parent 3128 3130
http_port 80
httpd_accel_host virtual
httpd_accel_with_proxy on
httpd_accel_single_host off
redirect_program /usr/local/bin/map

I'm using redirector program like this:

#!/usr/bin/perl
    $|=1;
    while (<>) {
        s@http://192\.168\.0\.1@http://10.0.0.1@;
        s@http://192\.168\.0\.2@http://www.microsoft.com@;
        print;
    }
I created two virtual interfaces in squid accelerator (eth0; eth0:1) with
two IP address:
192.168.0.1
192.168.0.2

Internet Explorer is set with no proxy.
I can see that the only first virtual interface (192.168.0.1) defined in
Perl redirector script, redirects

toward http://10.0.0.1 . If I defined more interfaces first one always
redirects, while the others point

nothing with this message: impossible to view page.

I'm using another Squid as Parent (P) : 10.0.0.5.

__________________________________________________________________
ADSL Senza Canone 640Kbps:
attivala entro il 31 marzo e avrai GRATIS il costo di adesione,
quello di attivazione e il modem per tutto il 2004.
E per i primi 3 mesi navighi a 1,5 euro l'ora! Affrettati!
http://point.tiscali.it/adsl/prodotti/senzacanone/
Received on Thu Mar 25 2004 - 01:56:59 MST

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