I'm experimenting with setting 'httpd_accel_host virtual' on a test
Squid server here.  The manual says that I need a redirector, so I
made a little perl script like the example:
#!/usr/bin/perl
$|=1;
        while (<>) {
            open LOG, ">>/home/squid/logs/redir.log";
            printf LOG "Got input: $_\n";
            s@http://131\.215\.66\.103@http://agent86.gps.caltech.edu@;
            printf LOG "Output is: $_\n";
            print;
            close LOG;
        }
I added the logging lines to it because when I tried it out, I could
see the processes running:
# ps -auwwx | grep squid
nobody 55820  3.0  2.4  6780 6100  p0  S     2:07PM   0:00.15 squid -NsY
nobody 55821  0.0  0.5  1848 1268  ??  Ss    2:07PM   0:00.02 /usr/bin/perl /usr/local/etc/squid/redir.pl
nobody 55822  0.0  0.5  1848 1268  ??  Ss    2:07PM   0:00.02 /usr/bin/perl /usr/local/etc/squid/redir.pl
nobody 55823  0.0  0.5  1848 1268  ??  Ss    2:07PM   0:00.02 /usr/bin/perl /usr/local/etc/squid/redir.pl
nobody 55824  0.0  0.5  1848 1268  ??  Ss    2:07PM   0:00.02 /usr/bin/perl /usr/local/etc/squid/redir.pl
nobody 55825  0.0  0.5  1848 1268  ??  Ss    2:07PM   0:00.02 /usr/bin/perl /usr/local/etc/squid/redir.pl
But it does not work.  It starts the five redirectors, but nothing ever
gets written to my log file, and the URLs are not getting translated.
I tried sending a test to the redirector program, and it worked:
# echo "http://131.215.66.103/ 10.0.0.1/- - GET" | /usr/local/etc/squid/redir.pl
http://agent86.gps.caltech.edu/ 10.0.0.1/- - GET
And when I run it by hand like this, it writes to the log file.  I must
be doing something wrong, because even though Squid starts up five of 
these, they don't seem to be doing anything.
Any ideas?
-- Stan Schwarz | Extreme sports...offer "some kind of physical System Administrator | analog to the thrill of installing Linux or USGS Pasadena Office | other open-source operating systems." http://pasadena.wr.usgs.gov | -Mikki Halpin, _The Geek Handbook_Received on Thu Mar 29 2001 - 15:15:04 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:59:02 MST