So here's my current config:
<VirtualHost *:443> DocumentRoot "/var/www/keypad" ServerName keypad.io SSLOptions +StrictRequire <Directory /> SSLRequireSSL </Directory> SSLProtocol -all +TLSv1 SSLEngine on SSLCertificateFile /cert/cert.crt SSLCertificateKeyFile /cert/key.key SSLCACertificateFile /cert/inter.crt </VirtualHost> <VirtualHost *:80> ServerName keypad.io ServerAlias www.keypad.io DocumentRoot /var/www/keypad Redirect permanent / https://keypad.io/ </VirtualHost>
Which results in being able to access the site at both http:// and https://
I end up with an infinite redirect loop for some reason, with https:// in the address bar.
If I remove the *:80 Host entirely, http:// quits working and https:// ignores the
DocumentRoot property and gives me the apache welcome page. No matter what I do in the *:443 host block, I get an encrypted connection to the welcome page.
I want BOTH http:// and https:// to direct the client to an SSL encrypted version of my site. My apache2.conf is default. I haven't done a thing to it.
Server version: Apache/2.4.7 (Ubuntu) Server built: Jul 22 2014 14:36:38
EDIT: I added the extra '/' (and removed SSLv3 as suggested) and still have an infinite redirect loop. Any help is definitely appreciated.