Report this

What is the reason for this report?

Troubleto enable HTTP2 whit Virtualmin

Posted on August 2, 2018

Hi i have trouble to enable HTTP2 on my Virtualmin website.

I have use the a2enmod http2 command and add the protocol to my apache setup. But https://tools.keycdn.com/http2-test still say that may website is not HTTP/2.0 supported.

I dont know whats wrong. What should i do?



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!

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.

Hey there,

Can you share the exact steps/commands that you’ve executed in order to enable http2 so we can check them together?

Normally you will enable HTTP/2 using the a2enmod http2 command and then a few more steps will be required.

  1. Ensure that you are using the Apache MPM event worker. If you aren’t sure, you can switch to MPM event by running these commands: a2dismod mpm_prefork a2enmod mpm_event
  2. Edit your Apache VirtualHost configuration for your website and add the line Protocols h2 http/1.1 inside the <VirtualHost> section.
  3. Restart your Apache service with the command service apache2 restart.

If you’ve completed these steps and are still facing issues, it might be related to your SSL/TLS configuration. Make sure you have valid SSL/TLS certificates and the proper configuration for them.

For more information on configuring Apache and HTTPS on DigitalOcean, please refer to this guide: How To Secure Apache with Let’s Encrypt on Ubuntu 20.04.

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.