httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Axel-St├ęphane SMORGRAV <>
Subject RE: [users@httpd] SSL and directories
Date Fri, 07 Oct 2005 13:02:18 GMT
Sounds like you have a redirect loop.

What I would do is define one virtual host for http and one for https. The redirect rule would
go inside the http virtual host, and the "business logic" would go inside the https VH.

DocumentRoot /var/www/html
ErrorLog logs/error.log
CustomLog logs/access.log combined env=!dontlog
SSLCaCertificatePath ...
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin


# Make sure that the contents of this directory can only be read over SSL
<Directory /var/www/html/program>

	ServerName mailserver
	Redirect /program https://mailserver/program

	ServerName mailserver

	SSLEngine On

	SSLCertificateFile ... 
	SSLCertificateKeyFile ... 

	# Business logic



-----Original Message-----
From: Dimitri Yioulos [] 
Sent: Friday, October 07, 2005 2:22 PM
Subject: Re: [users@httpd] SSL and directories

Thanks so much for the reply.  I guess I didn't understand the SSLRequireSSL 
directive; it's an enforcement directive then.  I mistook it for a redirector 
(don't ask how I arrived at that conclusion :-(doh)  ).

May I press on?  As I previously mentioned, I installed a web mail program on 
my mail server, and through its conf file, ahve it SSL-enabled.  Users reach 
that program by being redirected by our web server (using the directive 
"redirect /webmailprog", and it 
works great.  Now, however, if I add a similar redirector on the mail server 
to try and see that http://mailserver/program goes to 
https://mailserver/program, I get a complaint that there are too many 
redirectors for this http server.  Point of story - how can I make sure that 
http:// goes to https://?

For that matter, how can I set up so that any particular directory is 
SSL-enabled and http:// is redirected to https://?

I appreciate your help.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message