在apache2 中啟用ssl mod: sudo a2enmod ssl
user@user-pc:/etc/apache2/sites-available# cat ssl.conf
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@ccu.csie.one
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/ssl/crt/server.pem
SSLCertificateKeyFile /etc/ssl/crt/server.key
</VirtualHost>
</IfModule>