HTTP2 not working on LAMP droplet with Ubuntu 20.04

I followed the following steps to configure my LAMP droplet:

  1. Install LAMP with Ubuntu 20.04 -
  2. Create non-root user:
  3. Create virtual host: 4: Install LetsEncrypt:
  4. Enable http2:

Enabling http2 should be straight forward by enabling it with the following command: a2enmod http2

And adding this to the virtual host file: Protocols h2 http/1.1

When I test my website( for http2 support on I get the following error:

  • HTTP/2 protocol is not supported.
  • ALPN extension is not supported.

Any ideas what I could try next to get it to work?


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.


I’ve just tested this and it seems to be working as expected:

Would you mind sharing here with the community how did you get this fixed?

Usually, if the configuration s done correctly, you would need to restart Apache after the change as well. Best, Bobby