httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Candler <B.Cand...@pobox.com>
Subject Re: [users@httpd] Redirect conditional on SSL/non-SSL
Date Thu, 18 Aug 2005 13:44:04 GMT
On Wed, Aug 17, 2005 at 01:26:52PM +0200, Mads Rosendahl wrote:
> Hi Brian,
> 
> A very simple solution that works on any type of webserver is to replace 
> the standard 403.4
> "SSL Required" error document with some sort of automatic redirect code. 
> In apache.conf
> you would put e.g.
> 
>  ErrorDocument 403 /error/ssl_auto_redirect.php

Hmm, that's a thought - although a 403 will also be generated for other
types of error (e.g. bad username/password in a protected area), so care
would be needed not to get into an infinite redirect loop...

Cheers,

Brian.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message