【发布时间】:2021-04-27 20:57:33
【问题描述】:
我的公司刚刚向我们提供了 SSL 证书,我必须尝试在 Windows Server 2019 上使用 Apache2.4 进行安装和配置。
我在 Apache24 的 conf 文件夹中创建了一个名为“certs”的文件夹。
在 certs 文件夹中,我有以下证书:
MYCOMPANY_Intermediate.cer
MYCOMPANY_Root.cer
mycompany_name_com.cer
private.cer
private.key
我已更新 httpd-ssl.conf 文件以包含证书,如下所示:
<VirtualHost _default_:443>
DocumentRoot "D:/htdocs"
ServerName mycompany.name.com:443
ServerAdmin mycompany@email.com
ErrorLog "${SRVROOT}/logs/error-ssl.log"
TransferLog "${SRVROOT}/logs/access-ssl.log"
# SSL Engine Switch:
SSLEngine on
# Server Certificate:
SSLCertificateFile "${SRVROOT}/conf/certs/mycompany_name_com.cer"
# Server Private Key:
SSLCertificateKeyFile "${SRVROOT}/conf/certs/private.key"
# Server Certificate Chain:
SSLCertificateChainFile "${SRVROOT}/conf/certs/MYCOMPANY_Intermediate.cer"
</VirtualHost>
返回 httpd.conf 文件,当我包含以下内容时:
# Secure (SSL/TLS) connections
Include conf/extra/httpd-ssl.conf
Apache 无法重新启动。
在错误日志中,我发现的唯一值得注意的可能是:
[Sat Jan 23 10:56:32.453519 2021] [mpm_winnt:notice] [pid 8552:tid 772] AH00455: Apache/2.4.46 (Win64) mod_authnz_sspi/0.1.1 OpenSSL/1.1.1h PHP/7.4.12 configured -- resuming normal operations
[Sat Jan 23 10:56:32.453519 2021] [mpm_winnt:notice] [pid 8552:tid 772] AH00456: Apache Lounge VS16 Server built: Oct 2 2020 11:45:39
[Sat Jan 23 10:56:32.453519 2021] [core:notice] [pid 8552:tid 772] AH00094: Command line: 'C:\\Apache24\\bin\\httpd.exe -d C:/Apache24'
[Sat Jan 23 10:56:32.463520 2021] [mpm_winnt:notice] [pid 8552:tid 772] AH00418: Parent: Created child process 17204
[Sat Jan 23 10:56:33.684738 2021] [ssl:warn] [pid 17204:tid 808] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Jan 23 10:56:33.729741 2021] [mpm_winnt:notice] [pid 17204:tid 808] AH00354: Child: Starting 64 worker threads.
如您所见,没有错误,只有警告。我不知道为什么 Apache 无法重新启动,我真的需要让它工作。
编辑
在事件视图中,在系统下的 Windows 日志下,我看到以下错误:
The Apache2.4 service terminated with the following service-specific error:
Incorrect function.
我还看到一个事件 ID 号 7024。我不确定这意味着什么。
【问题讨论】: