Skip to content

Commit

Permalink
Move SSLSessionCache directives outside of virtual host
Browse files Browse the repository at this point in the history
Closes #264
  • Loading branch information
LeoColomb committed Jun 14, 2021
1 parent 55c364d commit 64e33e8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
11 changes: 0 additions & 11 deletions h5bp/tls/ssl_engine.conf
Expand Up @@ -9,11 +9,6 @@
# (2) Improve SSL engine security and performance.
#
# https://httpd.apache.org/docs/current/mod/mod_ssl.html
#
# (3) Optimize SSL by caching session parameters.
# This cuts down on the number of expensive SSL handshakes.
# By enabling a cache, we tell the client to re-use the already
# negotiated state.

<IfModule mod_ssl.c>

Expand All @@ -25,10 +20,4 @@
SSLCompression Off
SSLSessionTickets Off

# (3)
<IfModule mod_socache_shmcb.c>
SSLSessionCache "shmcb:/usr/local/apache2/logs/ssl_gcache_data(10485760)"
SSLSessionCacheTimeout 86400
</IfModule>

</IfModule>
12 changes: 12 additions & 0 deletions httpd.conf
Expand Up @@ -78,6 +78,18 @@ LogLevel warn
CustomLog logs/access.log combined
</IfModule>

# Optimize TLS by caching session parameters.
# By enabling a cache, we tell the client to re-use the already negotiated
# state. This cuts down on the number of expensive TLS handshakes.
# https://httpd.apache.org/docs/current/mod/mod_socache_shmcb.html
<IfModule mod_socache_shmcb.c>
# https://httpd.apache.org/docs/current/mod/mod_ssl.html#SSLSessionCache
SSLSessionCache "shmcb:/usr/local/apache2/logs/ssl_gcache_data(10485760)"

# https://httpd.apache.org/docs/current/mod/mod_ssl.html#sslsessioncachetimeout
SSLSessionCacheTimeout 86400
</IfModule>

# Prevent Apache from sending its version number, the description of the
# generic OS-type or information about its compiled-in modules in the "Server"
# response header.
Expand Down

0 comments on commit 64e33e8

Please sign in to comment.