Skip to content

Commit 5e97434

Browse files
author
freeos
committed
Added HTTP2 for Apache
1 parent c31eeea commit 5e97434

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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)