apache - 配置 SSL conf 文件后 Wamp 无法启动
问题描述
我正在 WAMP 2.5 和 Apache 2.4.9 中设置 SSL 证书。当我取消评论在 http.conf 中包含 conf/extra/httpd-ssl.conf 时,Wamp 没有启动。这是我的 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.
解决方案
对于您定义的 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"
推荐阅读
- arrays - 如何借助 Julia 中的指针访问和更改数组中的元素?
- java - 无法使用 Java 读取 mp3 文件 Android
- google-places-api - Google Places API 仅在生产中返回零结果
- r - ggaluvial图中的不完整表达
- vector - 在 clojure 中的地图向量中添加和删除元素
- r - 在 R 中的几天内的特定时间平均数据
- python - 使用python从excel转置数据
- java - 如何在 Java Web 服务应用程序中保护 SQL Server 凭据
- c++ - C++20:强制使用指定的初始化器来模拟命名函数参数
- windows - 修剪 ArrayList 元素