Search squid archive

Squid redirection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux