Skip to content

Commit f09c9af

Browse files
author
Marius Burkard
committed
Do not use Protocols directive on systems without http2 module
1 parent d80257c commit f09c9af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/conf/vhost.conf.master

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@
5050
ServerAdmin webmaster@<tmpl_var name='domain'>
5151

5252
<tmpl_if name='ssl_enabled'>
53-
Protocols h2 http/1.1
53+
<IfModule mod_http2.c>
54+
Protocols h2 http/1.1
55+
</IfModule>
5456
SSLProtocol All -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
5557
SSLCipherSuite 'EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA !RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS'
5658
</tmpl_if>

0 commit comments

Comments
 (0)