Created
October 30, 2013 14:31
-
-
Save karol-blaszczyk/7233661 to your computer and use it in GitHub Desktop.
t
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 social44.com | |
ServerAlias social44.com www.social44.com | |
RewriteEngine on | |
ReWriteCond %{SERVER_PORT} !^443$ | |
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L] | |
</VirtualHost> | |
<VirtualHost *:443> | |
ServerName social44.com | |
ServerAlias social44.com www.social44.com | |
DocumentRoot /var/rails/social44 | |
<Directory /var/rails/social44> | |
Order allow,deny | |
Allow from all | |
Options None | |
</Directory> | |
SSLEngine On | |
SSLCertificateFile /etc/apache2/ssl/crt/ssl_cert.crt | |
SSLCertificateKeyFile /etc/apache2/ssl/key/ssl_cert.key | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment