apache2 - ERR_SSL_PROTOCOL_ERROR

apache2 - ERR_SSL_PROTOCOL_ERROR

我尝试在我的 apache2 服务器(在 Ubuntu 16.04 上运行)上安装 letsencrypt。它似乎运行良好,但由于某种原因,我的网站上出现以下错误:

SSL协议错误

我不知道哪里出了问题,希望你能帮助我。

这是我的虚拟主机:

<VirtualHost *:80>
   ServerName debout-les-idees.fr
   ServerAlias www.debout-les-idees.fr

   RewriteEngine on
   RewriteCond %{HTTPS} !on
   RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

</VirtualHost>
<IfModule mod_ssl>
    <VirtualHost *:443>

            ServerName debout-les-idees.fr
            ServerAlias www.debout-les-idees.fr
            DocumentRoot /var/www/DLI.fr/public

            <Directory /var/www/DLI.fr/public>
                    Options -Indexes
                    AllowOverride all
                    Order allow,deny
                    allow from all
            </Directory>

            SSLEngine on
            SSLCertificateFile /etc/letsencrypt/live/debout-les-idees.fr/cert.pem
            SSLCertificateKeyFile /etc/letsencrypt/live/debout-les-idees.fr/privkey.pem
            SSLCertificateChainFile /etc/letsencrypt/live/debout-les-idees.fr/chain.pem
            SSLProtocol all -SSLv2 -SSLv3
            SSLHonorCipherOrder on
            SSLCompression off
            SSLOptions +StrictRequire
            SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
            Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"

            LogLevel warn
            ErrorLog ${APACHE_LOG_DIR}/www.debout-les-idees.fr-error.log
            CustomLog ${APACHE_LOG_DIR}/www.debout-les-idees.fr-access.log combined

    </VirtualHost>
</IfModule>   

这是我的错误日志:

Tue Dec 11 06:25:03.530356 2018] [mpm_prefork:notice] [pid 26402] 
AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming 
normal operations
[Tue Dec 11 06:25:03.530397 2018] [core:notice] [pid 26402] AH00094: 
Command line: '/usr/sbin/apache2'

如果它能帮助你,这是我的 ports.conf 文件:

# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf

NameVirtualHost *:80
Listen 80

<IfModule mod_ssl.c>
    # If you add NameVirtualHost *:443 here, you will also have to change
    # the VirtualHost statement in /etc/apache2/sites-available/default-ssl
    # to <VirtualHost *:443>
    # Server Name Indication for SSL named virtual hosts is currently not
    # supported by MSIE on Windows XP.
    NameVirtualHost *:443
    Listen 443
</IfModule>

<IfModule mod_gnutls.c>
    Listen 443
</IfModule>

非常感谢你们,我相信你们^^

相关内容