apache启动报错Server should be SSL-aware but has no certificate configured

- 2018-07-12 15:40:21
- 热度: 959 ℃
- 标签: ssl
[root@iZ25hbgneyzZ logs]# /etc/init.d/httpd restart Stopping httpd: [FAILED] Starting httpd: [FAILED]
启动报错,查看错误日志文件 tail -10 /www/wdlinux/apache/logs/error_log
[Thu Jul 12 15:26:36 2018] [error] Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] ((null):0)
这个意思是跟ssl有关,改下port.conf
/www/wdlinux/apache/conf/vhost/port.conf
将原来的
Listen 443
NameVirtualHost *:443
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
改成
Listen 443 http NameVirtualHost *:443 AddType application/x-x509-ca-cert .crt AddType application/x-pkcs7-crl .crl
然后重启下httpd服务就可以了
这个错误是由于证书生成出错引起的,或者ssl还没有配置,解决方法是重新配置ssl。也可以通过下边方法暂时解决
转载请注明:友乐网站搬家迁移上云服务 » apache启动报错Server should be SSL-aware but has no certificate configured
提示:我们主营主机、域名,并做网站搬家、源码安装、服务器搭建、网站建设等网站相关工作。 QQ号:76963956 微信号:76963956