How do I enable http2 for Chrome in nginx 1.10.1 on Ubuntu server 14.04?

18 views
Skip to first unread message

fury

unread,
Nov 29, 2016, 2:35:10 PM11/29/16
to Phusion Passenger Discussions
I'm trying to enable http2 on my sites, and got it working on Firefox.

nginx -V lists that the http_v2 module is installed, but that it's built with openssl 1.0.1f, which doesn't have ALPN support, and Chrome removed NPN support a while back.

I built and installed OpenSSL 1.0.2j and then restarted nginx, but it's still not using it


Any ideas?

Thanks!

Daniel Knoppel

unread,
Nov 30, 2016, 10:35:52 AM11/30/16
to Phusion Passenger Discussions
HTTP/2 is considered by Nginx to be experimental on the stable line (1.10.x) so beware of bugs. 1.10.2 has a bunch of HTTP/2 fixes as well, but one thing you could try is to download Nginx mainline (1.11.x)  and use passenger-install-nginx to compile against it, ensuring that you also add the http_v2 flag (we only recently enabled it by default in that script: https://github.com/phusion/passenger/commit/e59af13629c8de1ea6ce509cec0fad7538860643 ).

- Daniel
Reply all
Reply to author
Forward
0 new messages