当我启动apache时,似乎启动正确,但它确实无法正常工作。
错误日志给我的消息是:
" [ssl:warn] [pid 3784:tid 256] AH01909:为www.example.com:443配置的RSA证书不包含与服务器名称匹配的ID"
以下是完整的错误日志:
[Wed Aug 20 08:05:33.208723 2014] [ssl:warn] [pid 3784:tid 256] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Wed Aug 20 08:05:33.746774 2014] [ssl:warn] [pid 3784:tid 256] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Wed Aug 20 08:05:33.825871 2014] [mpm_winnt:notice] [pid 3784:tid 256] AH00455: Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.6 configured -- resuming normal operations
[Wed Aug 20 08:05:33.825871 2014] [mpm_winnt:notice] [pid 3784:tid 256] AH00456: Apache Lounge VC11 Server built: Nov 21 2013 20:13:01
[Wed Aug 20 08:05:33.825871 2014] [core:notice] [pid 3784:tid 256] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Wed Aug 20 08:05:33.830753 2014] [mpm_winnt:notice] [pid 3784:tid 256] AH00418: Parent: Created child process 4452
[Wed Aug 20 08:05:35.148052 2014] [ssl:warn] [pid 4452:tid 268] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
这是httpd-ssl.conf的一个片段:
# SSL虚拟主机上下文 #
<VirtualHost _default_:443>
# 虚拟主机的常规设置 #
DocumentRoot "C:/xampp/htdocs"
ServerName www.example.com:443
ServerAdmin admin@example.com
ErrorLog "C:/xampp/apache/logs/error.log"
TransferLog "C:/xampp/apache/logs/access.log"
有谁知道出了什么问题?
很奇怪,因为在我的假期之前一切都很顺利,当我回来时,这个错误发生了。
答案 0 :(得分:4)
[Wed Aug 20 08:05:33.208723 2014] [ssl:warn] [pid 3784:tid 256] AH01909:为www.example.com:443配置的RSA证书不包含与服务器名称匹配的ID < / p>
这意味着服务器名称可能为foo.example.com
,但证书仅适用于bar.example.com
。在这种情况下,虽然Apache可能会尝试提供此类证书,但浏览器在访问https://foo.example.com
时不会接受它们。
答案 1 :(得分:3)
服务器名称必须与apache(httpd-ssl.conf)中的服务器名称相同,例如:在Apache(httpd.conf)ServerName localhost:8080
然后在apache(httpd-ssl.conf)中应该像这样ServerName www.example.com:8080
答案 2 :(得分:0)
尝试安装较新版本而非最新版本
备份所有数据库和代码
卸载XAMPP
安装较新版本
应该修复。
答案 3 :(得分:-3)
在File&#34; httpd-ssl.conf&#34;设置:
SSLEngine on(默认)
更改为SSLEngine设置。