We earn commission when you buy through affiliate links.

This does not influence our reviews or recommendations.Learn more.

HTTP/2 is the second major version of HTTP protocol released in 2015.

http-protocol-history

Around46.5%of websites support HTTP/2.

It has many features like:

Demo by AKAMAIshows HTTP/2 is approximatelytwo times fasterthan HTTP/1.1.

Did you knowLiteSpeedwas one of the first web servers to support HTTP/2?

HTTP2 statistics

But dont worry if you are doing some experiments.

You canget the TLS certificate for FREE.

So if you have a 2.2 or lower version, you first have to upgrade to the compatible version.

http2-demo

Lets compile Apache HTTP with themod_http2,mod_sslmodule.

This concludes Apache HTTP is installed with HTTP/2 module and its time to do the necessary configuration.

Note:there are three parameters in the aboveProtocolsdirective

Restart Apache HTTP server toreloadthe configuration.

chrome-http2-verify

Now, Apache HTTP instance isenabledto support HTTP/2 protocol.

Enabling HTTP/2 in Nginx is just a matter of adding thehttp2parameter in listen directive.

If your SSL configuration is in a file other nginx.conf, you must update it there.

Once done, restart the Nginx for configuration to be active.

Online you’re free to use theHTTP/2 Test tool.

Thats all for today.

I hope above helps you to enable HTTP/2 protocol in Apache and Nginx web servers forfast-loading web pages.