nginx - Enable HTTP/2
Nov 23, 2016

Make sure your version of nginx has been built with HTTP/2 support. The dotdeb releases have it enabled and can be easily installed.

nginx -V should contain --with-http_v2_module.

Enabling HTTP/2 support is as simple as adding it to the listen option of your config:

listen 443 ssl http2;
listen [::]:443 ssl http2;

Reload nginx:

systemctl reload nginx.service
nginx Related