我已经安装了letsencrypt,并获得了成功消息: 在我的example.com-le.ssl.conf文件中包含以下内容:
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin abc@gmail.com
ServerName example.com
ServerAlias www.example.com
DocumentRoot /var/www/html/path
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/html/path>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>
default-ssl.conf也指向443。
防火墙状态显示如下:
443/tcp ALLOW Anywhere
Apache Full ALLOW Anywhere
OpenSSH ALLOW Anywhere
443/tcp (v6) ALLOW Anywhere (v6)
Apache Full (v6) ALLOW Anywhere (v6)
OpenSSH (v6) ALLOW Anywhere (v6)
然后,当我给出https://example.com时,它会显示错误消息“无法到达站点”。但是,http://example.com可以正常工作。 https配置有什么问题?