Page 1 of 1

Apache SSL conf: Inter-Process Session Cache

PostPosted: 09. August 2012 17:00
by XAMPP_511
May be its trivial, however, I wasted a lot of time with errors/warnings concerning the cache.
Simple solution: load the necessary modules.
This is how the basic SSL config should look like:
Code: Select all
#   Inter-Process Session Cache:
#   IMPORTANT!
#      without loaded LoadModule cache_module modules/mod_cache.so
#      AND one of mod_socache_dbm.so OR mod_socache_shmcb.so
#      there will be no so cache available
#   Configure the SSL Session Cache:
#      First the mechanism
#      to use and second the expiring timeout (in seconds).
##       SSLSessionCache         "dbm:logs/ssl.scache"
##      OR
##       SSLSessionCache        "shmcb:logs/ssl.scache(512000)"
##       SSLSessionCacheTimeout  300
<IfModule !cache_module>
LoadModule cache_module modules/mod_cache.so
</IfModule>
# choose the mechanism
######
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
# LoadModule socache_dbm_module modules/mod_socache_dbm.so
######
<IfModule socache_shmcb_module>
SSLSessionCache        "shmcb:logs/ssl.scache(512000)"
SSLSessionCacheTimeout  300
</IfModule>
<IfModule socache_dbm_module>
SSLSessionCache         "dbm:logs/ssl.scache"
SSLSessionCacheTimeout  300
</IfModule>


May be there is a new httpd-ssl.conf in future releases ...

Re: Apache SSL conf: Inter-Process Session Cache

PostPosted: 10. August 2012 20:42
by JonB
Many thanks for posting your 'fix'

Good Luck
8)