How to enable HTTP/2 on NGINX

📅 Published 01/10/2023

In this post, I'll explain how you can setup your NGINX for HTTP/2.

Go to your nginx.conf or default configuration file. In my case I'll need to change my NGINX default configuration file;

This should look something like this;

Add http2 after ssl:

Now save your changes to the NGINX config file and reload NGINX:

Well done! Now your NGINX server uses HTTP/2!

An unhandled error has occurred. Reload 🗙