Forum Moderators: phranque
When you ./configure you Apache httpd source tree, you need to give it '--enable-http2' as additional argument to trigger the build of the module.
Basic Configuration
When you have a httpd built with mod_http2 you need some basic configuration for it becoming active. The first thing, as with every Apache module, is that you need to load it:
LoadModule http2_module modules/mod_http2.so
The second directive you need to add to your server configuration is
Protocols h2 http/1.1
This allows h2, the secure variant, to be the preferred protocol on your server connections. When you want to enable all HTTP/2 variants, you simply write:
Protocols h2 h2c http/1.1
Depending on where you put this directive, it affects all connections or just the ones to a certain virtual host. You can nest it, as in:
Protocols http/1.1
<VirtualHost ...>
ServerName test.example.org
Protocols h2 http/1.1
</VirtualHost>
This allows only HTTP/1 on connections, except SSL connections to test.example.org which offer HTTP/2.
<IfModule http2_module>
LogLevel http2:info
Protocols h2 h2c http/1.1
</IfModule> So I don't know if "faster" means "your website pages and files will load faster", or "Apache processes will open and close faster, so there's no noticeable difference to the user but less stress on the server"?
Ok... where does one "give it '--enable-http2'?
So maybe I ONLY need to modify the VirtualHost (or, more accurately, /etc/apache2/conf.d/userdata/ssl/2_4/[account]/[domain_name]/httpd.conffor the sites that use PHP 5.6 to Protocols http/1.1 to overwrite the default protocol?