nginx now supports http/2.0
My blog is now http2.0 enabled!
nginx supports http/2.0 since version 1.9.5, if you have your own ssl cert for your own domain, you can now easily setup a http/2.0 enabled web server via nginx!
I’ll use Ubuntu 14.04 LTS as an example here, and assume you already have a https enabled site via old versions of nginx.
Add nginx mainline repository from nginx.org:
[bash]
$ sudo sh -c ‘echo deb http://nginx.org/packages/mainline/ubuntu/ `lsb_release -cs` nginx > /etc/apt/sources.list.d/nginx_mainline.list’
[/bash]
Add PGP key for apt:
[bash]
$ curl http://nginx.org/keys/nginx_signing.key | sudo apt-key add –
[/bash]
Update apt repository local cache:
[bash]
$ sudo apt-get update
[/bash]
Remove old nginx(remember to backup your configs!):
[bash]
$ sudo apt-get remove nginx nginx-extra nginx-common
[/bash]