Re: [squid-users] rewrite feature, internal redirector... need help again

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Fri, 26 Dec 2008 19:52:27 +1300

chudy fernandez wrote:
> #!/usr/bin/perl
> $|=1;
> while (<>) {
> @X = split;
> if (($X[4] =~ /POST/) && ($X[1] =~ /files\/[0-9]*\/[0-9]*/)) {
> print "$X[0] 302:$X[1]\n";
> } else {
> print "$X[0] $X[1]\n";
> }
> }
> note:
> url_rewrite_children 1
> url_rewrite_concurrency 99
>
> how to do this in rewrite feature?...
> rewrite 302:%ru <-im stuck up here
>

maybe:
   "$X[0] 302:%ru$X[1]\n";

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE5 or 3.0.STABLE11
   Current Beta Squid 3.1.0.3
Received on Fri Dec 26 2008 - 06:52:33 MST

This archive was generated by hypermail 2.2.0 : Fri Dec 26 2008 - 12:00:01 MST