Search squid archive

Re: Internal redirector

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

 



Does squid support internel redirect officially?
If not, using an external redirector is simple enough.

#!/usr/bin/perl -wl

$|=1;   # don't buffer the output

while (<>) {

        our ($uri,$client,$ident,$method) = split;
        $uri =~ s/\&begin=[0-9]*//;

} continue {
        print "$uri";
}

2009/6/26 Chudy Fernandez <chudy_fernandez@xxxxxxxxx>:
>
> can we use internal redirector(rewrite feature) to replace/remove some regex(\&begin=[0-9]*) on URL?
>
> like..
> http://www.foo.com/video.flv&begin=900
> to
> http://www.foo.com/video.flv
>
>
>
>



-- 
In this magical land, everywhere
is in full bloom with flowers of evil.
                     - Jeff Pang (CN)

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

  Powered by Linux