Skip to content

Instantly share code, notes, and snippets.

@iamhunter
Created October 24, 2016 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamhunter/d83c4d8e9390cf9b53f1f2eefbeeeead to your computer and use it in GitHub Desktop.
Save iamhunter/d83c4d8e9390cf9b53f1f2eefbeeeead to your computer and use it in GitHub Desktop.
Virtual Host example for SSL with cloudflare
<VirtualHost Local.IP.Address:443>
DocumentRoot /var/www/html
ServerName www.example.com
SSLEngine on
SSLCertificateFile /var/www/html/ssl/cert.crt
SSLCertificateKeyFile /var/www/html/ssl/key.key
<Directory "/var/www/html">
AllowOverride All
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment