在Ubuntu 16服务器上安装的SSL将不会路由到443 https

时间:2017-10-11 22:41:37

标签: apache ubuntu ssl ubuntu-16.04

我有一个ubuntu服务器,我已经安装了SSL证书(每次重新加密后现在是3xs),我仍然无法让我的服务器路由到https。

这是我的000-default.conf文件配置......

<VirtualHost *:80>
        ServerName www.xxxx.me
        Redirect / https://www.xxxx.me
</VirtualHost>
<VirtualHost *:443>
        ServerName www.xxxx.me

        SSLEngine on
        SSLCertificateFile /etc/ssl/xxxx/xxxx.me.crt
        SSLCertificateKeyFile /etc/ssl/xxxx/xxxx.me.key
        SSLCACertificateFile /etc/ssl/xxxx/intermediate.crt

        ServerAdmin admin@xxxx.me
        DocumentRoot /var/www/html
        # I have also set the doc root to DocumentRoot /var/www/html/test with an index.php file in there to just test that https was working an it is not working...

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

我已经运行了这个命令:

  

sudo a2enmod ssl

响应如下:

Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Module socache_shmcb already enabled
Module ssl already enabled

我重新启动了服务器:

  

sudo service apache2 restart

0 个答案:

没有答案