How to Enable HTTP/2 with Apache in Ubuntu

How to configure or enable or setup HTTP2 with Apache in Ubuntu. HTTP2 is a protocol developed to reduce latency minimize protocol overhead and many more efficient features compared to HTTP1.

In this guide you are going to learn how to enable HTTP2 with Apache. This setup is tested on a Google cloud compute engine instance with Ubuntu 20.20 OS and Apache 2.4.41.

Choose Best Hosting for your Business.

Make sure you have the above 2 requirements in place to have HTTP2 working.

Check Apache version using this command.

In Ubuntu 20.04 you will get an output similar to the one below.

You can enable HTTP2 module using the a2enmod command.

Configure Apache virtual host to use HTTP2.

Edit your HTTP virtual host config and the Protocol directive.

Repace ssl.conf with the file name of yours.


Read Full Post

News Link:
RSS Link:

Linux Chatter is a news aggregator service that curates some of the best Linux, Cloud, Technical Guides, Hardware and Security news. We display just enough content from the original post to spark your interest. If you like the topic, then click on the 'read full post' button to visit the author's website. Use Linux Chatter to find content from amazing authors!

Note: The content provided has been modified and is not displayed as intended by the author. Any trademarks, copyrights and rights remain with the source.

Disclaimer: Linux Chatter sources content from RSS feeds and personal content submissions. The views and opinions expressed in these articles are those of the authors and do not necessarily reflect those of Linux Chatter.