今天在一台机器,配置两个https的时候报如下告警
/etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [Thu Aug 19 11:35:19 2021] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
[Thu Aug 19 11:35:19 2021] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
[ OK ]
导致新的https配置文件,相当于不生效,百度,谷歌了半天,终于解决了,我自己的解决方法如下,希望可以帮到大家
在配置文件里增加了一行信息 NameVirtualHost *:443
再重启,httpd服务,问题即可解决,我的http版本是2.2
参考资料:
https://stackoverflow.com/questions/10658017/apache-error-default-virtualhost-overlap-on-port-443