Skip to content

Instantly share code, notes, and snippets.

@javascriptlove
Created June 12, 2018 17:56
Show Gist options
  • Save javascriptlove/457db392199351db77f8cbf1f2890b4b to your computer and use it in GitHub Desktop.
Save javascriptlove/457db392199351db77f8cbf1f2890b4b to your computer and use it in GitHub Desktop.
Configure Apache SSL using Webmin's Let's Encrypt certificate
<VirtualHost *:80>
DocumentRoot /path/to/www/
ServerName domain.com
ServerAlias www.domain.com
<Directory "/path/to/www/">
Options FollowSymLinks MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:443>
DocumentRoot /path/to/www/
ServerName domain.com
ServerAlias www.domain.com
SSLEngine on
SSLCertificateFile "/etc/webmin/letsencrypt-cert.pem"
SSLCertificateKeyFile "/etc/webmin/letsencrypt-key.pem"
<Directory "/path/to/www/">
Options FollowSymLinks MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment