Skip to content

Instantly share code, notes, and snippets.

@khasky
Created July 22, 2020 11:53
Show Gist options
  • Save khasky/f77fe54b95bfd59498a5b8ab780af957 to your computer and use it in GitHub Desktop.
Save khasky/f77fe54b95bfd59498a5b8ab780af957 to your computer and use it in GitHub Desktop.
Apache2 VPS https conf
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin hello@khasky.com
ServerName khasky.com
ServerAlias www.khasky.com
DocumentRoot /var/www/khasky.com/public_html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/khasky.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/khasky.com/privkey.pem
</VirtualHost>
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment