Skip to content

Instantly share code, notes, and snippets.

@mattgrill
Created December 1, 2014 05:53
Show Gist options
  • Save mattgrill/a2a617e1ce7f191fb3b8 to your computer and use it in GitHub Desktop.
Save mattgrill/a2a617e1ce7f191fb3b8 to your computer and use it in GitHub Desktop.
httpd-ssl.conf
Listen 443
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
SSLPassPhraseDialog builtin
SSLSessionCache "shmcb:/private/var/run/ssl_scache(512000)"
SSLSessionCacheTimeout 300
LogFormat "%V %h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"" dynamic_vhosts
CustomLog /var/log/apache2/ssl_request_log dynamic_vhosts
<VirtualHost *:443>
SSLEngine on
SSLProtocol ALL -SSLv2 -SSLv3
SSLHonorCipherOrder On
SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
SSLCertificateFile /private/etc/apache2/ssl/server.crt
SSLCertificateKeyFile /private/etc/apache2/ssl/private.key
ServerName localhost
VirtualDocumentRoot /Users/{USERNAME}/Sites/%0
<Directory "/Users/{USERNAME}/Sites">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment