Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
已配置Apache SSLSessionCache,但未使用_Apache_Ssl - Fatal编程技术网

已配置Apache SSLSessionCache,但未使用

已配置Apache SSLSessionCache,但未使用,apache,ssl,Apache,Ssl,我正在尝试在windows计算机上配置Apache 2.4,如下所示: SSLSessionCache shmcb:logs/ssl_session_cache(512000) 相关模块已加载: LoadModule socache_shmcb_module modules/mod_socache_shmcb.so 我在启动时没有收到任何错误,但似乎没有使用缓存。该文件不显示在日志目录中,/server status告诉我: SSL/TLS Session Cache Status: cac

我正在尝试在windows计算机上配置Apache 2.4,如下所示:

SSLSessionCache shmcb:logs/ssl_session_cache(512000)
相关模块已加载:

LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
我在启动时没有收到任何错误,但似乎没有使用缓存。该文件不显示在日志目录中,/server status告诉我:

SSL/TLS Session Cache Status:
cache type: SHMCB, shared memory: 524288 bytes, current entries: 0
subcaches: 32, indexes per subcache: 91
index usage: 0%, cache usage: 0%
total entries stored since starting: 0
total entries replaced since starting: 0
total entries expired since starting: 0
total (pre-expiry) entries scrolled out of the cache: 0
total retrieves since starting: 0 hit, 0 miss
total removes since starting: 0 hit, 0 miss
当我在浏览器中检查单个请求时,似乎也没有使用缓存。我必须以某种方式激活缓存吗?可能是在虚拟主机配置或类似的配置中

更新:我的虚拟主机配置

斯伦金安 SSLCertificateFile“c:\apache24\conf\example.com.crt” SSLCertificateKeyFile“c:\apache24\conf\example.com.key” SSLCertificateChainFile“c:\apache24\conf\ca bundle client.crt”

ServerName-example.com:443
SetHandler平衡器管理器
命令拒绝,允许
全盘否定
允许从127.0.0.1开始
平衡员http://localhost:9000
#第二个成员是唯一的候补成员
平衡员http://localhost:9001 状态=+H
ProxySet lbmethod=byrequests
命令允许,拒绝
通融
ProxyPass/平衡器管理器!
ProxyPass/balancer://mycluster/
ProxyPassReverse/http://localhost:9000/
ProxyPassReverse/http://localhost:9001/
#将域的www和.net/.de版本以及ip地址转发到example.com
重新启动发动机
重写cond%{HTTP|u HOST}^(www\.example\.com |(www\.)?example\.(net | de))[NC]
重写规则^(.*)$https://example.com$1[L,NE,R=301]


端口:80上的vhost只重定向到上面的一个。

使用dbm缓存时效果相同。请添加vhost配置。你解决过这个问题吗?@codenamezero,我不确定。我不再做这个项目了。我们有可能切换回Apache2.2
ServerName example.com:443

<Location /balancer-manager>
  SetHandler balancer-manager

  Order Deny,Allow
  Deny from all
  Allow from 127.0.0.1
</Location>

<Proxy balancer://mycluster>
  BalancerMember http://localhost:9000
  # Second Member is only standby
  BalancerMember http://localhost:9001 status=+H

  ProxySet lbmethod=byrequests
</Proxy>

<Proxy *>
  Order Allow,Deny
  Allow From All
</Proxy>

ProxyPass /balancer-manager !
ProxyPass / balancer://mycluster/
ProxyPassReverse / http://localhost:9000/
ProxyPassReverse / http://localhost:9001/

# forwarding www- and .net/.de-versions of the domain as well as the ip address to example.com
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.example\.com|(www\.)?example\.(net|de)) [NC]
RewriteRule ^(.*)$ https://example.com$1 [L,NE,R=301]