Re: [squid-users] HTTP redirect and HTTPS

From: Chris Robertson <crobertson@dont-contact.us>
Date: Mon, 16 Apr 2007 11:42:33 -0800

Jack Murray wrote:
> Hello, we are using Squid as a HTTPS gateway to backend servers, and
> we would like to have squid also force redirects from HTTP to HTTPS.
> I tried doing this with v2.5.14 using a rewriter that returns a
> 302:url, but it gets into an infinite loop because when it gets a
> HTTPS request the rewriter still sees a http:// in the url passed to
> the rewriter. Is this a bug in 2.5.14? Or in general what is a
> suggestion for doing the http to https redirect along with the https
> gateway. btw, we tried using stunnel and it was too slow and
> unreliable, squid is much better.
> Jack
>

acl HTTP proto HTTP
acl server dst 1.2.3.4
http_access deny server HTTP
deny_info https://server.name/ HTTP

Or, using the port...

acl httpport myport 80
acl server dst 1.2.3.4
http_access deny server httpport
deny_info https://server.name/ httpport

Chris
Received on Mon Apr 16 2007 - 13:43:16 MDT

This archive was generated by hypermail pre-2.1.9 : Tue May 01 2007 - 12:00:01 MDT