Enable HTTP/2 on Nginx

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.

HTTP/2 not enabled

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.


Enable HTTP/2 on Nginx

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.


Free SSL Certificates with Let’s Encrypt for Nginx on CentOS 7

Are you paying too much for SSL certificates? Are you looking for free SSL certificates?

You can get free SSL certificates with Let’s Encrypt and deploy it with Certbot in less than 10 minutes!

In this article, I will show you how you can install and deploy SSL certificates for Nginx servers running on CentOS 7.

What is Let’s Encrypt

Let’s Encrypt is a CA (Certificate Authority) that provides free SSL DV (Domain Validation) certificates. These free SSL certificates allow websites to