Re: [squid-users] url_rewrite_program

From: alexus <[email protected]>
Date: Thu, 30 Aug 2007 15:53:51 -0400

i dont understand what is "rest" parameter for on whlie line? that is
just to seperate url from the rest of the line?

On 8/30/07, Henrik Nordstrom <henrik@henriknordstrom.net> wrote:
> On tor, 2007-08-30 at 11:26 -0400, alexus wrote:
>
> > first of all i'd like to specify somehow (probably through acl) which
> > urls i want to send for rewrite at the first place, since i dont want
> > my url_rewrite_program to process every single url.
>
> See url_rewrite_access
>
> > #!/bin/sh
> > read i ; echo $i >> /tmp/1 ; echo $i
> > -
>
> The above should be
>
> #!/bin/sh
> while read url rest; do
> echo $url $rest >>/tmp/1
> echo # blank line for no change, or replace with another URL.
> done
>
> Regards
> Henrik
>
>

-- 
http://alexus.org/
Received on Thu Aug 30 2007 - 13:54:00 MDT

This archive was generated by hypermail pre-2.1.9 : Sat Sep 01 2007 - 12:00:03 MDT