Have you enable HTTP/2 on your Nginx server? If you have not, you should.
In this article, I will show you how to enable HTTP/2 in less than 5 minutes.
Before we begin, let’s verify that it is not enabled on our website with this tool provided by KeyCDN.
If you have yet to setup SSL on your server, check out this tutorial on how you can install free SSL certificates on your servers before continuing below.
Let’s Enable HTTP/2
Edit your Nginx configuration (eg. /etc/nginx/conf.d/default.conf) with any text editor.
server { listen 443 ssl http2; ... }
In the server block, as shown above, simply add http2
and you are done!
Now let’s verify that HTTP/2 has been enabled.
Voila!
Hope this short article helped you learned how to enabled HTTP/2 on Nginx.
If you liked this article, don’t forget to share this article with your friends and family.