[squid-users] Redirectors and reverse proxy

From: R. Benjamin Kessler <[email protected]>
Date: Thu, 16 Dec 2004 14:58:16 -0400

All -

I'm trying to configure a redirector to change certain URL's from http:// to
https:// and send a redirect back to the client - very similar to FAQ note
#15.5.

I've copy/pasted the perl script in the FAQ and modified it as appropriate
but it doesn't seem to do anything.

What am I missing?

Thanks,

Ben

#!/usr/bin/perl
$|=1;
        while (<>) {
                @X = split;
                $url = $X[0];
               if ($url =~ /^http:\/\/www\.domainname\.com\/apply/) {
                       $url =~ s/^http/https/;
                       print "302:$url\n";
                } else {
                        print "$url\n";
                }
        }
Received on Thu Dec 16 2004 - 11:58:17 MST

This archive was generated by hypermail pre-2.1.9 : Sat Jan 01 2005 - 12:00:02 MST