Installing nginx 1.10 with HTTP/2 support

In the past few days nginx stable version has reached the version 1.10 with HTTP/2 support.

I have blogged before about how to install nginx on ubuntu 14.4 but using ppa:nginx/stable  channel , sadly the channel was not updated yet to have the latest version, so here is how to install the latest version.

1- If you have nginx installed before using ppa:nginx/stable you should uninstall it using the command

this will remove nginx but will keep the configuration files

2- You should add the official apt repo to sources.list file or you can add it to sources.list.d directory like this

Add the following line

save the file and exit.

3- We should download the key for nginx

4- we should import the key

5- [Optional] : delete the key

6- update and install nginx

7- Enable HTTP/2 : just a small note before you enable HTTP/2 support, that it will not work under normal port 80 as its only supported over SSL , so in your Server block you should add the following :

and remember to restart your nginx.

PS: as usual, since english is not my mother language, you might find some errors, so if you do let me know and I will be happy to fix it.

1 Trackback

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.