Skip to content

Commit 6b8a1eb

Browse files
author
Till Brehm
committed
Merge branch 'master' into 'master'
Improvements in using HTTP2 and talking about version See merge request ispconfig/ispconfig3!705
2 parents 7b7c688 + ddcde6b commit 6b8a1eb

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

install/tpl/apache_ispconfig.vhost.master

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
<VirtualHost _default_:<tmpl_var name="vhost_port">>
1010
ServerAdmin webmaster@localhost
11+
<tmpl_if name='apache_version' op='>=' value='2.4' format='version'>
12+
Protocols h2 h2c http/1.1
13+
</tmpl_if>
1114

1215
<Directory /var/www/ispconfig/>
1316
<FilesMatch "\.ph(p3?|tml)$">

install/tpl/named.conf.options.master

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ options {
2222
dnssec-validation yes;
2323
dnssec-lookaside auto;
2424

25-
version "DNS managed by ISPConfig";
26-
25+
version "DNS-Server";
2726
auth-nxdomain no; # conform to RFC1035
2827
listen-on-v6 { any; };
2928
};

server/conf/vhost.conf.master

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
<tmpl_loop name='vhosts'>
1414
<VirtualHost {tmpl_var name='ip_address'}:{tmpl_var name='port'}>
1515
<tmpl_hook name='apache2_vhost:vhost_header'>
16+
<tmpl_if name='enable_spdy' op='==' value='y'>
17+
<tmpl_if name='apache_version' op='>=' value='2.4' format='version'>
18+
Protocols h2 h2c http/1.1
19+
</tmpl_if>
20+
</tmpl_if>
21+
1622
<tmpl_if name='php' op='==' value='suphp'>
1723
DocumentRoot <tmpl_var name='web_document_root'>
1824
</tmpl_else>

0 commit comments

Comments
 (0)