Created
July 24, 2013 19:37
-
-
Save tdantas/6073771 to your computer and use it in GitHub Desktop.
apache ssl recipe configuration for our rails configuration
This file contains 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 domain.com | |
ServerAlias www.domain.com | |
#ServerAlias *.domain.com | |
RailsBaseURI /join | |
<Directory /join> | |
Options -MultiViews | |
</Directory> | |
Redirect permanent / https://www.domain.com | |
CustomLog /var/log/apache2/access.log combined | |
ErrorLog /var/log/apache2/error.log | |
</VirtualHost> | |
<VirtualHost *:443> | |
ServerAlias www.domain.com | |
SSLEngine on | |
SSLCertificateFile certificate.crt | |
SSLCertificateKeyFile certificate.key | |
SSLCertificateChainFile chain.crt | |
RailsBaseURI /join | |
<Directory /join> | |
Options -MultiViews | |
</Directory> | |
DocumentRoot /path/to/your/document/root | |
<IfModule mod_deflate.c> | |
<FilesMatch "\.(js|css)$"> | |
SetOutputFilter DEFLATE | |
</FilesMatch> | |
</IfModule> | |
CustomLog /var/log/apache2/access.log combined | |
ErrorLog /var/log/apache2/error.log | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
openssl pkcs7 -print_certs -in mysslcertificate.crt