[Deploying Sakai] Forcing HTTPS

Anand Mehta anand.mehta at yahoo.com
Mon Apr 11 07:36:36 PDT 2011

Hi Larry,

When I go to http://sakai.windsorschools.net/portal it does switch to https.


From: Larry Dougher <ldougher at windsorschools.net>
To: production at collab.sakaiproject.org
Sent: Fri, April 8, 2011 10:45:25 PM
Subject: [Deploying Sakai] Forcing HTTPS

Hi all,

I got SSL working with my keys but I can't get it force https even though I 
changed the url in sakai.properties to https://sakai.windsorschools.net

Here is how I got SSL working.  I didn't have httpd_ssl.conf because I'm on a 
stock OS X server box so I put this in httpd.conf:

ServerName sakai.windsorschools.net
Listen *:443
<VirtualHost *:443>
ServerName windsorschools.net
DocumentRoot "/var/empty"
SSLEngine On
SSLCertificateFile /etc/apache2/certificates/windsorschools.net.crt
SSLCertificateKeyFile /etc/apache2/certificates/*.windsorschools.net.key
SSLCertificateChainFile /etc/apache2/certificates/cagdbundle.crt

Then, I put this in the bottom of my httpd.conf off of Steve's tutorial:

LoadModule rewrite_module libexec/apache2/mod_rewrite.so

RewriteEngine on
ReWriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]

But it still won't force https when someone goes to 
http://sakai.windsorschools.net/portal  Any ideas?


Larry Dougher
Technology Coordinator / ACSP 10.6 / ACMT
Windsor Southeast Supervisory Union
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/production/attachments/20110411/d7c62e79/attachment-0001.html 

More information about the production mailing list