Re: [squid-users] Internal redirector

From: Adrian Chadd <adrian_at_squid-cache.org>
Date: Fri, 26 Jun 2009 20:30:03 +0800

Squid-2.HEAD has some internal rewriting support.

I'm breaking it out into a separate module in Lusca (rather than being
an optional part of the external rewriter) to make using it in
conjunction with the external URL rewriter possible.

Adrian

2009/6/26 Jeff Pang <pangj_at_laposte.net>:
> 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_at_yahoo.com>:
>>
>> 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)
>
>
Received on Fri Jun 26 2009 - 12:30:09 MDT

This archive was generated by hypermail 2.2.0 : Fri Jun 26 2009 - 12:00:04 MDT