HTTP/2 Support with Apache 2.4.17

With the news that Apache HTTP server supports HTTP/2 in version 2.4.17, I thought I’d try and get working on this website.

Given I was already running Apache 2.4, it was a fairly simple update using the package manager to update to the latest version. I was already using the custom Ubuntu PPA packages for Apache 2.4 available here.

Once the packages were installed, it was as simple as ensuring the module was loaded and setting the protocol support in the config file:

LoadModule http2_module /usr/lib/apache2/modules/mod_http2.so

ProtocolsHonorOrder On
Protocols h2 h2c http/1.1

I used the internal chrome page to validate everything was working fine:
HTTP2 Internals showing blog.joelj.org

You can get to this page by visiting the following URL:
chrome://net-internals/#http2

That’s it!

Sources: [1], [2], [3], [4]

2 thoughts on “HTTP/2 Support with Apache 2.4.17”

    1. I am also interested in server push. Haven’t been able to figure it out though. Doesn’t appear to be any documentation on the subject.

Leave a Reply

Your email address will not be published. Required fields are marked *