Re: [squid-users] url_rewrite_program

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Thu, 30 Aug 2007 18:50:53 +0200

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

Received on Thu Aug 30 2007 - 10:51:00 MDT

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