[squid-users] Reverse proxy redirector

From: Brad Taylor <btaylor@dont-contact.us>
Date: Tue, 1 Feb 2005 11:02:11 -0500

I have a redirector setup on my reverse squid proxy to change all http
requests to https. But it doesn't seem to be working. Here is the
script:

#!/usr/bin/perl
$|=1; #Don't buffer output.

while(<>) #Infinite loop. running as a daemon
{
   $url=(split)[0];
   $url=~ s/^http:/https:/;
   print "$url\n";
}

See any reason why this will not redirect http to https?

I get this error:

ERROR
The requested URL could not be retrieved

------------------------------------------------------------------------
--------

While trying to retrieve the URL: https://10.10.1.36/

The following error was encountered:

Connection Failed
The system returned:

    (71) Protocol error

The remote host or network may be down. Please try the request again.

Your cache administrator is webmaster.

------------------------------------------------------------------------
--------

Generated Tue, 01 Feb 2005 05:34:02 GMT by localhost.localdomain
(squid/2.5.STABLE6)
Received on Tue Feb 01 2005 - 09:02:12 MST

This archive was generated by hypermail pre-2.1.9 : Tue Mar 01 2005 - 12:00:01 MST