Created
February 7, 2014 21:34
-
-
Save kylesuss/8872356 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName myapp.example.com | |
RewriteEngine On | |
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=permanent] | |
</VirtualHost> | |
<VirtualHost *:443> | |
ServerName myapp.example.com | |
DocumentRoot /var/www/myapp/current/public | |
<Directory /var/www/myapp/current/public> | |
AllowOverride all | |
Options -MultiViews | |
</Directory> | |
SSLEngine on | |
SSLOptions +StrictRequire | |
SSLCertificateFile /etc/apache2/certs/myapp.example.com.crt | |
SSLCertificateKeyFile /etc/apache2/certs/myapp.example.com.key | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment