在apache2&上安装SSL Ubuntu 14.04

时间:2015-08-26 05:30:21

标签: apache ubuntu ssl ubuntu-14.04

我正在尝试在我的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>

0 个答案:

没有答案