gpt4 book ai didi

https - Apache 2.4 的 ssl 配置不起作用

转载 作者:行者123 更新时间:2023-12-03 05:36:47 27 4
gpt4 key购买 nike

带有 mod_jk 1.3.7 的 Apache Server 2.4 不适用于 ssl (https)

错误1:

The Apache service named reported the following error:

SSLSessionCache: 'shmcb' session cache not supported (known names: ). Maybe you need to load the appropriate socache module (mod_socache_shmcb?).

错误2:

Faulting application name: httpd.exe, version: 2.4.4.0, time stamp: 0x512fec36 Faulting module name: mod_jk.so, version: 1.2.37.0, time stamp: 0x4fc48072 Exception code: 0xc0000005 Fault offset: 0x000000000000752d Faulting process id: 0x3580 Faulting application start time: 0x01cee6d2be493d71 Faulting application path: C:\Program Files\Apache Software Foundation\Apache2.4\bin\httpd.exe Faulting module path: C:\Program Files\Apache Software Foundation\Apache2.4\modules\mod_jk.so Report Id: f8d090fa-52c6-11e3-bce9-e4d53d737212

我们的配置为httpd_ssl.conf如下:

Listen 443

SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5

SSLPassPhraseDialog builtin

SSLSessionCache "shmcb:C:/Program Files/Apache Software Foundation/Apache2.4/logs/ssl_scache(512000)"
SSLSessionCacheTimeout 300

<VirtualHost _default_:443>

DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.4/htdocs"
ServerName 127.0.0.1:443
ServerAdmin admin@mshome.net
ErrorLog "C:/Program Files/Apache Software Foundation/Apache2.4/logs/error.log"
TransferLog "C:/Program Files/Apache Software Foundation/Apache2.4/logs/access.log"

SSLEngine on

SSLCertificateFile "C:/Program Files/Apache Software Foundation/Apache2.4/conf/serverssl.crt"

SSLCertificateKeyFile "C:/Program Files/Apache Software Foundation/Apache2.4/conf/server.key"

SSLCACertificateFile "C:/Program Files/Apache Software Foundation/Apache2.4/conf/bundle.crt"

<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "C:/Program Files/Apache Software Foundation/Apache2.4/cgi-bin">
SSLOptions +StdEnvVars
</Directory>

BrowserMatch "MSIE [2-5]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0

CustomLog "C:/Program Files/Apache Software Foundation/Apache2.4/logs/ssl_request.log" \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>

TIA...!

最佳答案

在 Apache2.2 中,apache/conf/httpd.conf 中取消注释以下行默认情况下。

LoadModule socache_shmcb_module modules/mod_socache_shmcb.so

从 Apache 2.4 开始,上面的行已被注释,因此删除 #在它之前签名。

这应该有效。

关于https - Apache 2.4 的 ssl 配置不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20127138/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com