Re: [SQU] chaining redirectors

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sun, 17 Dec 2000 06:15:56 +0100

Rick Francis wrote:
>
> i found this:
>
> #!/usr/bin/perl -p
> BEGIN { $|=1; }
> s%http://serv(/|$)%301:http://serv.foo.com/%
>
> are you suggesting to change serv.foo.com to whatever.i.gov?

This is something entirely different. This redirector is a replacement
for local_domain, not chained redirectors.

And as a replacement for local_domain the substitution should better
read:

s%http://serv(:|/|$)%301:http://serv.foo.com$1%;

Hmm.. coming to think about it, the thread was actually about chaining
proxy_auth helpers. The principles are the same thought.

One thing you need to decide is how you want the redirectors chained. I
see at least two alternatives:

a) As one chain where the output of the first is chained into the
second.

b) As a loose chain where only URLs not redirected by the first is
chained to the second.

Alternative A can be implemented simply by using a pipe

redirector_program sh -c "program1|program2|program3"

Alternative B can be solved like the proxy_auth chaining I am talking
about above.

--
Henrik Nordstrom
Squid hacker
--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Sat Dec 16 2000 - 22:18:49 MST

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