File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed
Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 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
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>
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments