h2 / http2

Nginx has had HTTP2 support built in as of Nginx 1.9.5.

nginx -v

OpenSSL is newer than 1.0.2k

openssl version

Enable HTTP2 on Nginx is as simple as modifying an existing Nginx vhost to enable HTTP2 as shown below:

[root@web01 ~]# vim /etc/nginx/sites-enabled/example.com.conf
...
server {
      listen 443 ssl http2;
      server_name example.com www.example.com;
...
[root@web01 ~]# nginx -t
[root@web01 ~]# service nginx restart

Test to confirm HTTP2 is working by:

[user@workstation ~]# curl -IL https://www.example.com --insecure
HTTP/2 200      <----
server: nginx/1.14.0 (Ubuntu)
date: Mon, 22 Oct 2018 18:46:25 GMT