Skip to content

Instantly share code, notes, and snippets.

@khasky
Created July 22, 2020 11:53
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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