How to set a rediretor for squid

From: thispo <thispo@dont-contact.us>
Date: Fri, 12 Jun 1998 11:14:33 +0800

Hi:

        Is someone have the successful experience to set up the squid
to accelerate many original http servers. The things I have done but
still not work ,hope someone can help me out!

1. set the port to 80 in squid.conf
2. add two domain 'po.gcn.net.tw' and 'po.at-taiwan.com' in dns
   server to map the same machine (203.65.188.244) which runs squid
deamon
   The dns setup is tested and ok!
3. Turn on the http_accel_uses_host_header in squid.conf
4. Modify redirect_program to /usr/local/bin/test.pl in squid.conf
5. Set redirect_children 5 in squid.conf

the test.pl is as following

#!/usr/bin/perl
$|=1'
while(<>)
     {
     s@http://po.gcn.net.tw@http://server1.com.tw@;
     s@http://po.at-taiwan.com@http://server2.at-taiwan.com@;
     }

                                                                po
Received on Thu Jun 11 1998 - 20:13:46 MDT

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