47270b9a9b9713bc421e5f39e7cbb037095a126c
By:
weblora

Has anybody successfully enabled HTTP/2 on Ubuntu 16.04 with Apache 2.4.18?

May 17, 2016 2.2k views
LAMP Stack Apache Ubuntu 16.04

If so, please explain to me how you were able to do it.

When I run either of the following:

sudo a2enmod mod_http2
sudo a2enmod http2

I receive the following respectively:

ERROR: Module mod_http2 does not exist!
ERROR: Module http2 does not exist!

Regards.
Jay Welsh.

3 Answers

You would need to install an Apache package that contains the http2 module, which is not the case of Ubuntu 16.04's package.

You need to follow these steps to install http2 module in Ubuntu 16.04

# add-apt-repository -y ppa:ondrej/apache2 # apt update # apt --only-upgrade install apache2 -y # a2enmod http2 # service apache2 restart
Have another answer? Share your knowledge.