我已经安装了SPDY指标铬扩展。 它正在检测一些网站作为SPDY启用和一些HTTP / 2启用。
哪些是当前支持HTTP / 2的Web服务器? 我知道nginx支持SPDY,但它支持HTTP / 2吗? 如果是这样,我该如何启用它?
感谢GolezTrol。 答案是不。 是截至2015年9月
以下列表已过时,可能不值得维护。
在https://github.com/http2/http2-spec/wiki/Implementations上有支持HTTP / 2的Web服务器等完整列表
HTH
请看下面的表格
+--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+ | Name | Language | Role(s) | Negotiation(s) | Protocol id(s) | +--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+ | http4s-blaze | Scala | server | ALPN | h2, h2-14 | +--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+ | cl-http2-protocol | Common Lisp | client, server | NPN, direct | h2-14 | +--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+ | Deuterium | C | client, server | ALPN, direct | h2, h2-14, h2c, h2c-14 | +--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+ | F5 | C | server, proxy | ALPN, NPN | h2-14 (11.6.0 HF2) h2 (upcoming release) | +--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+ | H2O | C | server, proxy | ALPN, NPN, Upgrade, direct | h2, h2-14, h2-16 | +--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+ | http-2 | Ruby | server, client | ALPN, NPN, Upgrade, direct | h2, h2c, h2-17 | +--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+ | http2 | Go | client, server | NPN (+ ALPN w/ Go 1.4) | | +--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+ | Jetty | Java | client, intermediary, server | ALPN, Upgrade, Direct | h2, h2-17, h2-14, h2c, h2c-17 | +--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+ | LiteSpeed Enterprise | C++ | server | ALPN, NPN, Upgrade | h2, h2-17, h2-14, h2c | +--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+ | Lucid | Erlang | server | NPN, direct | h2, h2-16, h2-14 | +--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+ | Microsoft | C/C++ | Client, server | ALPN | h2 | +--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+ | mod_h2 | C | server | ALPN, NPN, Upgrade, direct | h2, h2c (plus -14,-16) | +--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+ | Netty | Java | client, server | ALPN, NPN, Upgrade, direct | h2, h2c | +--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+ | nghttp2 | C | client, server, intermediary | ALPN, NPN, Upgrade, direct | h2, h2-16, h2-14, h2c | +--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+ | node-http2 | NodeJS | server, client | ALPN, NPN, direct | h2 | +--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+ | OkHttp | Android, Java | mock server, client | ALPN, NPN | h2 | +--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+ | OpenLiteSpeed | C++ | server | ALPN, NPN, Upgrade | h2, h2-17 , h2-14, h2c | +--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+ | Protocol::HTTP2 | Perl | server, client | ALPN, NPN, Upgrade, direct | h2, h2c | +--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+ | Brocade SteelApp Traffic Manager (formerly Riverbed/Zeus TM) | C++ | server | ALPN, NPN, Upgrade, direct | h2, h2c | +--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+ | Sasazka | NodeJS | server | NPN | | +--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+ | second-transfer | Haskell | server | ALPN | h2-14, h2 | +--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+ | Trusterd | C/mruby | client, server | ALPN, NPN, direct | | +--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+ | Twitter | C++ | server, client | ALPN, NPN | h2 | +--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+ | Undertow | Java | server, Intermediary | ALPN, Upgrade | | +--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+ | Warp | Haskell | server | ALPN, direct | | +--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+
因为我不知道如何保持链接里面的表格格式链接到产品。
nginx上周发布了1.9.5主线版本 。 您必须使用--with-http_v2_module
来编译nginx以启用HTTP / 2支持。 它不支持服务器推送 。
我写了一篇关于如何在OS X上使用HTTP / 2进行本地开发的简单文章,以防其他人感兴趣: http : //tech.finn.no/2015/09/25/setup-nginx-与-http2为当地发展/