Skip to content

Instantly share code, notes, and snippets.

@strangerstudios
Created February 13, 2017 23:17
Show Gist options
  • Save strangerstudios/eef97f91ec473701d06b582b2972b757 to your computer and use it in GitHub Desktop.
Save strangerstudios/eef97f91ec473701d06b582b2972b757 to your computer and use it in GitHub Desktop.
Example SSL configuration for Apache
NameVirtualHost *:443
<VirtualHost *:443>
SSLEngine on
DocumentRoot /var/www/vhosts/yourdomain.com/httpdocs/
ServerName yourdomain.com
ErrorLog /var/www/vhosts/yourdomain.com/logs/error.log
CustomLog /var/www/vhosts/yourdomain.com/access.log combined
SSLCertificateFile /etc/letsencrypt/live/yourdomain.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/yourdomain.com/privkey.pem
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment