How to enable HTTP/2 in Apache on Ubuntu Server

preview_player
Показать описание

sudo add-apt-repository ppa:ondrej/apache2
sudo apt-get update
sudo apt-get install apache2 -y
sudo a2enmod http2
Put somewhere this directive → Protocols h2 http/1.1
sudo service apache2 restart

This is quick and dirty video showing you how to enable HTTP/2 in Apache HTTP server. For HTTP/2 to work you need to have Apache 2.4.17 or above. To enable it inside virtual host or at global level just add Protocols h2 http/1.1 directive and that is it.

NOTE: HTTP/2 only works on HTTPS sites with modern TLS protocols and ciphers.

Рекомендации по теме
Комментарии
Автор

I was able to enable it and now it got reversed to http1.1

I am still trying to figure out how to fix this?

krishnag
Автор

Namaste Blago, Thank you for the wonderful commands & video. I enabled HTTP2 on misg.in. However, I am getting 404 errors on other pages. Could you please help me how to resolve that?

krishnag
Автор

Hi bro. Good video. Bro i want to update HTTP 1 to HTTP 2 on my Apache web server . Can you help me out with that bro ! From where we need to download the HTTP 2 zip file ?
Thank You .

beckham