3) Enable HTTP2 Support
By default, the HTTP/2 protocol support is not added in apache and we need to add the below lines to apache2.conf file for global access. If you want to enable to particular website you can add it to corresponding virtualhost (Like 2daygeek.conf).
[For HTTPS Support] Protocols h2 http/1.1 [For HTTP Support] Protocols h2c http/1.1
Restart Apache Web Server on SysVinit systems to check further.
$ sudo service apache2 restart [Debian/Mint/Ubuntu] $ sudo service httpd restart [RHEL/CentOS/Fedora]
Restart Apache Web Server on systemd systems to check further.
$ sudo systemctl restart apache2.service [Debian/Mint/Ubuntu] $ sudo systemctl restart httpd.service [RHEL/CentOS/Fedora]
4) Verify HTTP2 module
All the configuration got over, now times to check the status whether its working or not.
[ac-box color=”lred” icon=”fa-exclamation-circle”]
All the browsers are support HTTP2 with HTTPS Protocol. So, Make sure you should install HTTPS support on your server to enjoy/avail the HTTP2 features.
See the below screen shot, here i’m going to check via Firefox browser. how to check >> Tools >> Web Developer >> Network >> Choose the domain name “In my case its (localhost) with 200 GET status code”. Also you can verify by adding SPDY Indicator Add-on in Mozilla Firefox browser.
Alternatively we can check by Google chrome browser by navigating the link chrome://net-internals/#http2
See the detailed info from Google Chrome browser.
Alternatively we can check via curl & nghttp commands.
# Checking HTTP2 via nghttp # $ sudo nghttp -uv http://localhost # Checking HTTP2 via curl # $ sudo curl -v --http2 http://localhost
See the below screen shot.
Hope, here after you also will migrate your server to HTTP2 for super fast & safer Internet.