Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache XAMPP-RSA证书和SSL错误。如何配置httpd.conf和httpd-ssl.conf_Apache_Ssl_Xampp - Fatal编程技术网

Apache XAMPP-RSA证书和SSL错误。如何配置httpd.conf和httpd-ssl.conf

Apache XAMPP-RSA证书和SSL错误。如何配置httpd.conf和httpd-ssl.conf,apache,ssl,xampp,Apache,Ssl,Xampp,我在HP服务器上安装了XAMPP,它有一个有效的IP地址 XAMPP正在工作,但几天前它突然停止并开始报告此错误: [pid 4196:tid 404]AH00098:pid文件E:/xampp/apache/logs/httpd.pid被覆盖--是否未清除上次apache运行的关闭 [pid 4196:tid 404]AH01909:为www.example.com:443配置的RSA证书不包括与服务器名称匹配的ID 这是httpd.conf的一个片段: ServerRoot "E:/xamp

我在HP服务器上安装了
XAMPP
,它有一个有效的IP地址

XAMPP正在工作,但几天前它突然停止并开始报告此错误:

[pid 4196:tid 404]AH00098:pid文件E:/xampp/apache/logs/httpd.pid被覆盖--是否未清除上次apache运行的关闭

[pid 4196:tid 404]AH01909:为www.example.com:443配置的RSA证书不包括与服务器名称匹配的ID

这是
httpd.conf
的一个片段:

ServerRoot "E:/xampp/apache"

ServerAdmin postmaster@localhost

ServerName localhost:88
这是
httpd ssl.conf
的一段代码(已启用的行):

听443
SSLCipherSuite高:中:!阿努尔:!MD5
SSLPassPhraseDialog内置
SSLSessionCache“shmcb:E:/xampp/apache/logs/ssl_scache(512000)”
SSLSessionCacheTimeout 300
#虚拟主机的常规设置
DocumentRoot“E:/xampp/htdocs”
服务器名www.example.com:443
服务器管理员admin@example.com
ErrorLog“E:/xampp/apache/logs/error.log”
TransferLog“E:/xampp/apache/logs/access.log”
斯伦金安
SSLCertificateFile“conf/ssl.crt/server.crt”
SSLCertificateKeyFile“conf/ssl.key/server.key”
发展+标准
发展+标准
CustomLog“E:/xampp/apache/logs/ssl_request.log”\
%t%h%{SSL\u协议}x%{SSL\u密码}x\%r\%b
根据我在中搜索和提出的建议,我认为问题的根源可能是
ServerName
,因此我设置了配置,但我真的不知道如何配置它


我尝试了上面链接中给出的解决方案,但没有成功。

这些消息都不是错误,只是警告。它们不会停止服务器加载,只会在启动时发生。是什么导致了不干净的关机可能是你需要回答的问题。可能希望包含来自关闭而不是启动的日志;如果您没有看到任何内容,请提高日志记录级别。@miken32谢谢您的回复。Apache是check-as服务。警告的原因可能是什么?操作系统中的一些问题或XAMPP配置的问题?它在消息中说明了问题所在。发生了不干净的关机,并且您的证书与服务器设置不匹配。但是如果你说它“突然停止”,你应该看看为什么会出现不干净的关机。miken32我删除了
httpd.pid
文件(这是一个锁)并点击开始按钮,我也看到了上面的错误,但第一个错误消失了。我想问题是第二个。
Listen 443

SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5

SSLPassPhraseDialog  builtin

SSLSessionCache "shmcb:E:/xampp/apache/logs/ssl_scache(512000)"
SSLSessionCacheTimeout  300

<VirtualHost _default_:443>

# General setup for the virtual host
DocumentRoot "E:/xampp/htdocs"
ServerName www.example.com:443
ServerAdmin admin@example.com
ErrorLog "E:/xampp/apache/logs/error.log"
TransferLog "E:/xampp/apache/logs/access.log"

SSLEngine on

SSLCertificateFile "conf/ssl.crt/server.crt"
SSLCertificateKeyFile "conf/ssl.key/server.key"

<FilesMatch "\.(cgi|shtml|phtml|php)$">
    SSLOptions +StdEnvVars
</FilesMatch>
<Directory "E:/xampp/apache/cgi-bin">
    SSLOptions +StdEnvVars
</Directory>

CustomLog "E:/xampp/apache/logs/ssl_request.log" \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>