Search squid archive

Re: rewrite feature, internal redirector... need help again

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

 



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

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

  Powered by Linux