Re: [squid-users] Internal redirector

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sat, 27 Jun 2009 15:36:58 +1200

Jeff Pang wrote:
> Does squid support internel redirect officially?

Some Squid-2 releases do.
The Squid-3 port is still pending testing.

> 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
>>
>>

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE6 or 3.0.STABLE16
   Current Beta Squid 3.1.0.9
Received on Sat Jun 27 2009 - 03:37:07 MDT

This archive was generated by hypermail 2.2.0 : Sat Jun 27 2009 - 12:00:03 MDT