首页 > 解决方案 > 配置 SSL conf 文件后 Wamp 无法启动

问题描述

我正在 WAMP 2.5 和 Apache 2.4.9 中设置 SSL 证书。当我取消评论在 http.conf 中包含 conf/extra/httpd-ssl.conf 时,Wamp 没有启动。这是我的 ssl 配置文件和 httpd.conf。请看看和帮助。

SSL 配置文件 Httpd.conf 文件

Error in Apache error log 

[Sun Jan 27 10:04:35.018678 2019] [ssl:warn] [pid 4880:tid 564] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun Jan 27 10:04:35.034305 2019] [mpm_winnt:notice] [pid 4880:tid 564] AH00455: Apache/2.4.9 (Win64) OpenSSL/1.0.1g PHP/5.5.12 configured -- resuming normal operations
[Sun Jan 27 10:04:35.034305 2019] [mpm_winnt:notice] [pid 4880:tid 564] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:42:59
[Sun Jan 27 10:04:35.034305 2019] [core:notice] [pid 4880:tid 564] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.9'
[Sun Jan 27 10:04:35.034305 2019] [mpm_winnt:notice] [pid 4880:tid 564] AH00418: Parent: Created child process 2204
[Sun Jan 27 10:04:35.549913 2019] [ssl:warn] [pid 2204:tid 468] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun Jan 27 10:04:35.565540 2019] [mpm_winnt:notice] [pid 2204:tid 468] AH00354: Child: Starting 64 worker threads.

标签: apachessl-certificatewampwampserverhttpd.conf

解决方案


对于您定义的 CA 证书,Path而不是File

SSLCACertificatePath "c:/wamp/bin/apache/apache2.4.9/conf/key/gd_bundle-g2-g1.crt"

应该

SSLCACertificateFile "c:/wamp/bin/apache/apache2.4.9/conf/key/gd_bundle-g2-g1.crt"

推荐阅读