Apache 2.4configuration为ssl不能正常工作

Apache服务器2.4与mod_jk 1.3.7不适用于ssl(https)

错误1:

名为Apache的服务报告了以下错误:

SSLSessionCache:'shmcb'会话caching不支持(已知名称:)。 也许你需要加载相应的socache模块(mod_socache_shmcb?)。

错误2:

错误应用程序名称:httpd.exe,版本:2.4.4.0,时间戳:0x512fec36错误模块名称:mod_jk.so,版本:1.2.37.0,时间戳:0x4fc48072错误代码:0xc0000005错误偏移量:0x000000000000752d错误进程ID:0x3580错误应用程序启动时间:0x01cee6d2be493d71错误的应用程序path:C:\ Program Files \ Apache Software Foundation \ Apache2.4 \ bin \ httpd.exe错误模块path:C:\ Program Files \ Apache Software Foundation \ Apache2.4 \ modules \ mod_jk。所以报告编号:f8d090fa-52c6-11e3-bce9-e4d53d737212

我们的httpd_ssl.confconfiguration如下:

 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注释,所以删除#号之前。

这应该工作。

对于el capitan,path是/usr/libexec/apache2/mod_socache_shmcb.so

我在httpd.conf条目如下所示:

 LoadModule socache_shmcb_module /usr/libexec/apache2/mod_socache_shmcb.so 

cp /etc/apache2/mods-available/socache_shmcb.load / etc / apache2 / mods-enabled /

这将解决:SSLSessionCache:'shmcb'会话caching不支持(已知名称:)。 也许你需要加载相应的socache模块(mod_socache_shmcb?)。