[squid-users] Squid redirection

From: jayesh chavan <jayesh.jayiesh_at_gmail.com>
Date: Thu, 25 Mar 2010 10:38:39 +0530

Hi,
        I have written script which redirects my squid to local
apache.It works fine for FOLLOWING SCRIPT

    #!c:/perl/bin/perl.exe
    $|=1;
    while (<>) {
    s@http://www.az.com@http://117.195.4.252@;
    print;
     }

But whenever I use this script
#!c:/perl/bin/perl.exe
$|=1;
while (<>) {
    s@http://www.az.com@http://117.195.4.252//index.html@;
    print;
   }

It doesnt work.I observed that this is happening due to redirect
program which is appending / at the end of rewritten url.It gives
error as:
                                               The requested URL
/index.html/ was not found on this server.
How to avoid that?
Regards,
  Jayesh
Received on Thu Mar 25 2010 - 05:08:47 MDT

This archive was generated by hypermail 2.2.0 : Thu Mar 25 2010 - 12:00:07 MDT