Ubuntu &引用;无法安装证书";安装LetsEncrypt ssl证书时出错

Ubuntu &引用;无法安装证书";安装LetsEncrypt ssl证书时出错,ubuntu,ssl,apache2,lets-encrypt,Ubuntu,Ssl,Apache2,Lets Encrypt,我正在尝试安装Lets Encrypt,但没有成功。我得到以下错误: Keeping the existing certificate Could not reverse map the HTTPS VirtualHost to the original IMPORTANT NOTES: Unable to install the certificate Congratulations! Your certificate and chain have been saved at: /etc/

我正在尝试安装Lets Encrypt,但没有成功。我得到以下错误:

Keeping the existing certificate
Could not reverse map the HTTPS VirtualHost to the original

IMPORTANT NOTES:

Unable to install the certificate
Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/www.deals4u.co.il/fullchain.pem Your key file has been saved at: /etc/letsencrypt/live/www.deals4u.co.il/privkey.pem Your cert will expire on 2018-05-19. To obtain a new or tweaked version of this certificate in the future, simply run certbot again with the "certonly" option. To non-interactively renew all of your certificates, run "certbot renew"
我的conf文件如下所示:

<VirtualHost *:80>
    ServerName deals4u.co.il
    ServerAlias www.deals4u.co.il
    DocumentRoot /var/www/html
    <Directory /var/www/html/>
        Options Indexes FollowSymLinks
        AllowOverride All
    </Directory>
</VirtualHost>

ServerName deals4u.co.il
ServerAlias www.deals4u.co.il
DocumentRoot/var/www/html
选项索引跟随符号链接
允许超越所有

删除具有类似
ServerName
VirtualHost
s为我解决了这个问题


如果您的配置中没有
VirtualHost
s,请尝试删除
ServerAlias

是否在443上设置了侦听虚拟主机?