Question

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

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.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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

How to do that?

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