迁移服务器后SSL_ERROR_RX_RECORD_TOO_LONG

我有一个OVH VPS(debian,apache,SSL)完整的function网站。 我试图将它迁移到一个等高线VPS。 我更改了DNS条目,我复制了Apacheconfiguration文件和证书文件,但它没有工作。 然后我尝试使用letsencrypt生成一个新证书,但是当我尝试通过https连接我的网站时,仍然收到SSL_ERROR_RX_RECORD_TOO_LONG。

这是我的apacheconfiguration文件:

Listen 80 Listen 443 https <VirtualHost mydomain.fr:80> ServerName mydomain.fr DocumentRoot /var/www/html </VirtualHost> <IfModule mod_ssl.c> <VirtualHost mydomain.fr:443> ServerName mydomain.fr DocumentRoot /var/www/html SSLCertificateFile /etc/letsencrypt/live/mydomain.fr/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/mydomain.fr/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf </VirtualHost> </IfModule> 

奇怪的是,certbot脚本返回成功,但ssllabs.com网站诊断问题。

 certbot certonly -d mydomain.fr 

给我

 Renewing an existing certificate Performing the following challenges: tls-sni-01 challenge for mydomain.fr Waiting for verification... Cleaning up challenges Generating key (2048 bits): /etc/letsencrypt/keys/001_key-certbot.pem Creating CSR: /etc/letsencrypt/csr/001_csr-certbot.pem IMPORTANT NOTES: - Congratulations! Your certificate and chain have been saved at /etc/letsencrypt/live/mydomain.fr/fullchain.pem. Your cert will expire on 2017-11-29. To obtain a new or tweaked version of this certificate in the future, simply run certbot again. To non-interactively renew *all* of your certificates, run "certbot renew" - If you like Certbot, please consider supporting our work by: Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate Donating to EFF: https://eff.org/donate-le