Skip to content

Instantly share code, notes, and snippets.

@ckhung ckhung/default-ssl.conf
Last active May 12, 2019

Embed
What would you like to do?
apache2 config to enable wildcard ssl certificate
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin 貴哥的電子郵件信箱
DocumentRoot /var/www/html/abc
ServerName abcdef.frdm.info
ErrorLog ${APACHE_LOG_DIR}/abcdef/error.log
CustomLog ${APACHE_LOG_DIR}/abcdef/access.log combined
Header set Access-Control-Allow-Origin "*"
SSLCertificateFile /etc/letsencrypt/live/frdm.info/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/frdm.info/privkey.pem
</VirtualHost>
<VirtualHost *:443>
ServerAdmin 貴哥的電子郵件信箱
DocumentRoot /var/www/html/uvwxyz
ServerName uvwxyz.frdm.info
ErrorLog ${APACHE_LOG_DIR}/uvwxyz/error.log
CustomLog ${APACHE_LOG_DIR}/uvwxyz/access.log combined
Header set Access-Control-Allow-Origin "*"
SSLCertificateFile /etc/letsencrypt/live/frdm.info/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/frdm.info/privkey.pem
</VirtualHost>
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.