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.

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.