I've got http/2 working with my drupal site in Aegir for a test setup. The only thing needed in Aegir for this is an option to add the protocol line to the vhost apache config

protocols h2 http/1.1

This enables the http2 protocol with multiplexing if mod_http2 is enabled. For more complex support a module in the drupal site is required to add headers with preload info (Link ;rel=preload)

(see https://httpd.apache.org/docs/2.4/mod/mod_http2.html)

Files: 

Comments

MartijnBraam created an issue. See original summary.

MartijnBraam’s picture

Issue summary: View changes
ergonlogic’s picture

Considering just how much faster HTTP/2 is (see: https://www.troyhunt.com/i-wanna-go-fast-https-massive-speed-advantage/), and that Let's Encrypt support is coming soon (see: https://gitlab.com/aegir/hosting_https), I think we should prioritize this. It looks pretty simple. I'll try to read up more on it. Thanks for the link.

memtkmcc’s picture

Project: Hostmaster (Aegir) » Provision
Version: 7.x-3.5 » 7.x-3.x-dev
Component: Code » HTTP Service

Moving this to the correct queue.

Note that we already support HTTP/2 in Nginx based installs:

http://cgit.drupalcode.org/provision/commit/?id=a19e495
http://cgit.drupalcode.org/provision/commit/?id=f7e2d8d

Grimreaper’s picture

Status: Active » Needs review
FileSize
1.42 KB

Hello,

Here is a simple patch that add the required lines in the vhost template (for SSL too).

As discussed with @helmo on IRC, I think it would be interesting to add a checkbox on the site form to enable/disable this feature per site.

As maybe HTTP2 is not the best option in all cases: https://events.drupal.org/dublin2016/sessions/http2-what-no-one-telling-you

Unfortunately my apache server on Debian 8 is on version 2.4.10 and http2 module was introduced in version 2.4.17 so I am not able to test it.

Thanks for the review.