I tried: sudo a2enmod http2
but it says it doesn’t exist? Do I need another version of apache?
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!
Accepted Answer
HTTP/2 in Apache is production-ready starting with version 2.4.26. So you will need Apache 2.4.26 or above. This can be realized by executing the following commands in the shell:
$ sudo apt install software-properties-common $ sudo add-apt-repository ppa:ondrej/apache2 $ sudo apt update $ sudo apt install apache2
Then you can redo your original command to activate the module in Apache:
$ sudo a2enmod http2
Hope it helps.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.