我正在尝试在我的apache2.4.7 ubuntu 14.04服务器上安装ssl 我正在关注数字海洋教程here 但它一直将我重定向到普通的http版本。这是我的000-default.conf在网站中可用(即使我删除了整个内容,它仍然加载我的网站)
<VirtualHost *:443>
ServerName xxxxxx.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/xxxxxx.com.crt
SSLCertificateKeyFile /etc/apache2/ssl/xxxxxx.com.key
SSLCertificateChainFile/etc/apache2/ssl/intermediate.crt
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>