File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed
Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,26 @@ NameVirtualHost *:<tmpl_var name="vhost_port">
6868 <tmpl_var name="ssl_comment">SSLCertificateKeyFile /usr/local/ispconfig/interface/ssl/ispserver.key
6969 <tmpl_var name="ssl_bundle_comment">SSLCACertificateFile /usr/local/ispconfig/interface/ssl/ispserver.bundle
7070
71+ <tmpl_var name="ssl_comment">SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:E$
72+ <tmpl_var name="ssl_comment">SSLHonorCipherOrder On
73+
74+ <IfModule mod_headers.c>
75+ Header always add Strict-Transport-Security "max-age=15768000"
76+ </IfModule>
77+
78+ <tmpl_if name='apache_version' op='>=' value='2.4' format='version'>
79+ <tmpl_var name="ssl_comment">SSLUseStapling on
80+ <tmpl_var name="ssl_comment">SSLStaplingResponderTimeout 5
81+ <tmpl_var name="ssl_comment">SSLStaplingReturnResponderErrors off
82+ </tmpl_if>
7183</VirtualHost>
7284
85+ <tmpl_if name='apache_version' op='>=' value='2.4' format='version'>
86+ <IfModule mod_ssl.c>
87+ <tmpl_var name="ssl_comment">SSLStaplingCache shmcb:/var/run/ocsp(128000)
88+ </IfModule>
89+ </tmpl_if>
90+
7391<Directory /var/www/php-cgi-scripts>
7492 AllowOverride None
7593 <tmpl_if name='apache_version' op='>' value='2.2' format='version'>
Original file line number Diff line number Diff line change 448448<tmpl_var name='apache_directives'>
449449<tmpl_hook name='apache2_vhost:vhost_footer'>
450450</VirtualHost>
451+
452+ <tmpl_if name='apache_version' op='>=' value='2.4' format='version'>
453+ <tmpl_if name='ssl_enabled'>
454+ <IfModule mod_ssl.c>
455+ SSLStaplingCache shmcb:/var/run/ocsp(128000)
456+ </IfModule>
457+ </tmpl_if>
458+ </tmpl_if>
459+
451460</tmpl_loop>
452461
453- <tmpl_hook name='apache2_vhost:footer'>
462+ <tmpl_hook name='apache2_vhost:footer'>
You can’t perform that action at this time.
0 commit comments