Skip to content

Commit 64e33e8

Browse files
committed
Move SSLSessionCache directives outside of virtual host
Closes #264
1 parent 55c364d commit 64e33e8

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

h5bp/tls/ssl_engine.conf

-11
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@
99
# (2) Improve SSL engine security and performance.
1010
#
1111
# https://httpd.apache.org/docs/current/mod/mod_ssl.html
12-
#
13-
# (3) Optimize SSL by caching session parameters.
14-
# This cuts down on the number of expensive SSL handshakes.
15-
# By enabling a cache, we tell the client to re-use the already
16-
# negotiated state.
1712

1813
<IfModule mod_ssl.c>
1914

@@ -25,10 +20,4 @@
2520
SSLCompression Off
2621
SSLSessionTickets Off
2722

28-
# (3)
29-
<IfModule mod_socache_shmcb.c>
30-
SSLSessionCache "shmcb:/usr/local/apache2/logs/ssl_gcache_data(10485760)"
31-
SSLSessionCacheTimeout 86400
32-
</IfModule>
33-
3423
</IfModule>

httpd.conf

+12
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,18 @@ LogLevel warn
7878
CustomLog logs/access.log combined
7979
</IfModule>
8080

81+
# Optimize TLS by caching session parameters.
82+
# By enabling a cache, we tell the client to re-use the already negotiated
83+
# state. This cuts down on the number of expensive TLS handshakes.
84+
# https://httpd.apache.org/docs/current/mod/mod_socache_shmcb.html
85+
<IfModule mod_socache_shmcb.c>
86+
# https://httpd.apache.org/docs/current/mod/mod_ssl.html#SSLSessionCache
87+
SSLSessionCache "shmcb:/usr/local/apache2/logs/ssl_gcache_data(10485760)"
88+
89+
# https://httpd.apache.org/docs/current/mod/mod_ssl.html#sslsessioncachetimeout
90+
SSLSessionCacheTimeout 86400
91+
</IfModule>
92+
8193
# Prevent Apache from sending its version number, the description of the
8294
# generic OS-type or information about its compiled-in modules in the "Server"
8395
# response header.

0 commit comments

Comments
 (0)