How to Enable HTTP/2.0 Support on Nginx Web Server
3) Enable HTTP2 Support
By default, the HTTP/2 protocol support is not added in Nginx and we need to add the below lines to particular virtualhost (Like 2daygeek.conf). For more configuration in Nginx wiht HTTP/2
[Just add http2 in listing line] listen 443 ssl http2; [Modify your certificate location] ssl on; ssl_certificate /etc/nginx/ssl/example.com.crt; ssl_certificate_key /etc/nginx/ssl/example.com.key;
Note Make sure, you should install and configure SSL with nginx to work HTTP2.
4) Verify HTTP2 module
All the configuration got over, now times to check the status whether its working or not.
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.
Hope, here after you also will migrate your server to HTTP2 for super fast & safer Internet.