Re: Access Denied on 2.2STABLE5 w/accel and proxy

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 21 Oct 1999 11:48:16 +0200

Jay Rouman wrote:

> This part I get. What I don't get is how to have two redirector
> programs. I still need squidGuard for filtering.

Two options:

a) change squidGuard to include your rewrites.

b) Write your own redirector which chains to squidGuard.

#!/usr/bin/perl
open(SG,"|/usr/local/bin/squidGuard") || die("Failed to open
SquidGuard\n");
select SG; $|=1;
while(<SG>) {
 s%http://www.your.domain(:80)?([/ ])%http://www.your.domain:81$2%i;
 print SG $_;
}
Received on Thu Oct 21 1999 - 04:28:54 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:49:01 MST