You guys are going to laugh at this. I had an extra Listen 443 in ports.conf that shouldn’t have been there. Removing that solved this.
因为在ports.conf中重复出现443端口的配置,所以做以下修改
把多余的Listen 443注释掉,所以ports.conf的内容应该是这样的
NameVirtualHost *:80
Listen 80
NameVirtualHost *:443
#Listen 443
<IfModule mod_ssl.c>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
另外在虚拟服务器中不要加 NameVirtualHost *:443