RE: [squid-users] Special needs for redirector

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Fri, 08 Dec 2006 13:22:35 +0100

fre 2006-12-08 klockan 13:48 +0200 skrev Emil Ungurean:
> Could you explain this a little more? Or perhaps an example that works for
> you might solve my problem. Thanks.

You should not redirect CONNECT requests back to https, as these is
already the https requests that you wanted to see.

Both the GET http:// and CONNECT site:443 requests is sent to your
redirector. Only the GET http:// request should be redirected with a
301:https://..

#!/usr/bin/perl -pa
BEGIN { $| = 1; }
next if ($F[3] eq "CONNECT");
s/^http:/301:https:/;

Regards
Henrik

Received on Fri Dec 08 2006 - 05:22:42 MST

This archive was generated by hypermail pre-2.1.9 : Mon Jan 01 2007 - 12:00:01 MST