I've been waiting and waiting for the new release of Ubuntu so I could finally get a more up to date version of apache for http2. FINALLY upgraded (after stupid issues with the updater) and I don't see the http2 module anywhere. How do I enable http2? Please don't tell me it was it was left out because it's "experimental".
1 Answer
You can use Ondrej's Launchpad PPA:
sudo add-apt-repository ppa:ondrej/apache2
sudo apt-get update
sudo apt-get dist-upgrade
I found this answer on DigitalOceans community support site:
Don't forget that after installing the new version of Apache, you need to activate the module manually:
sudo a2enmod http2
In your Apache config file, you can either add global support:
Protocols h2 h2c http/1.1
Or you can activate it for individual, secure vhosts:
Protocols h2 http/1.1
Restart Apache and you're all set. You can test your server at https://tools.keycdn.com/http2-test.
snap
package format: find or create the package with the latest and greatest Apache version regardless what the rest of the system expects.