RE: [squid-users] Special needs for redirector

From: Emil Ungurean <emil.ungurean@dont-contact.us>
Date: Thu, 7 Dec 2006 10:22:21 +0200

Henrik,

For simplicity and testing I switched the redirector to a simpler program,
just for testing, the code is as fallows:

#!/usr/bin/perl

$|=1;

while (<>) {

print "301:https://ssl-id1.de/elektrokontakt-floss.de/ssl/pm/index.php\n";

}

The browser, well it shows nothing just an error.
Here's the access.log

1165479605.624 2 192.168.1.13 TCP_MISS/301 188 GET
http://www.google.ro/ - NONE/- -
1165479605.632 0 192.168.1.13 TCP_MISS/301 188 CONNECT ssl-id1.de:443 -
NONE/- -

Any ideas?

Emil Ungurean
S.C. NEXTNET S.R.L.
Network/System Administrator
Splaiul General Gheorghe Magheru Bl. 303/A, Parter Comercial
SR EN ISO 9001:2001 Certified
Web: http://www.nxt.ro
Office Phone: (+40) 257-219888
Personal Phone: (+40) 727-770566
Email: emil.ungurean@nxt.ro

-----Original Message-----
From: Henrik Nordstrom [mailto:henrik@henriknordstrom.net]
Sent: Wednesday, December 06, 2006 11:49 PM
To: Emil Ungurean
Cc: squid-users@squid-cache.org
Subject: Re: [squid-users] Special needs for redirector

ons 2006-12-06 klockan 13:59 +0200 skrev Emil Ungurean:

> I've googled around a lot trying to find a "working" answer how can I
> actually redirect from http to https, from the redirector program. I would
> like not to mess with the squid.conf if that's possible.

If you want the browser to go to the https site then

print "301:https://www.example.com\n";

If you want the browser to continue using HTTP, but Squid to switch to
https then return the https URL you want Squid to go to (2.6 or later).

Regards
Henrik
Received on Thu Dec 07 2006 - 01:22:43 MST

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