【问题标题】:Which web servers support HTTP/2哪些 Web 服务器支持 HTTP/2
【发布时间】:2015-04-15 23:10:19
【问题描述】:

我已经安装了 SPDY Indicator chrome 扩展。它检测到一些站点启用了 SPDY,一些站点启用了 HTTP/2。

目前支持 HTTP/2 的 Web 服务器有哪些?我知道 nginx 支持 SPDY,但它支持 HTTP/2 吗?如果是,我该如何启用它?

更新

感谢 GolezTrol。 答案是否定的。 截至 2015 年 9 月是的

支持

  • IIS 在 Windows 10[50] 中支持 HTTP/2
  • OpenLiteSpeed 1.3.7 和 1.4.4 支持 HTTP/2 草案 16.[51]

SPDY,但没有 HTTP/2

以下列表已过时,可能不值得维护。

  • Nginx 通过模块[52] 为 SPDY(草案 3.1)提供实验性支持[52]
  • Apache 在当前 2.4.x 版本中不支持 SPDY,但是 mod_spdy 允许添加它[53]
  • LiteSpeed Web 服务器目前支持 SPDY/3.1[54]

【问题讨论】:

  • 这个问题及其答案将会过时 FAST!! Nginx 确实 现在支持 HTTP/2 并且已经完成了几个几个月。
  • githubWikipedia 的支持服务器列表将保持更新。
  • Em......我刚刚测试了github和stackoverflow,它们似乎还不支持HTTP/2。令人惊讶!他们应该这样做,因为他们是技术人员。重点网站。 :)

标签: nginx http2


【解决方案1】:

https://github.com/http2/http2-spec/wiki/Implementations 有支持 HTTP/2 的 Web 服务器等的完整列表

HTH

【讨论】:

  • ^ 不是完整列表。 http/2 实现!= http2 网络服务器。例如,caddyserver.com 使用其中一种实现,但不是它自己的实现。 (免责声明:我是 Caddy 的作者。)
【解决方案2】:

请看下表

+--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+
| 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               |                                          |
+--------------------------------------------------------------+----------------+------------------------------+----------------------------+------------------------------------------+

产品的链接,因为我不知道如何保持带有链接的表格格式。

【讨论】:

  • downvoter 的日子不好过吗?也许需要详细说明?
【解决方案3】:

nginx released 1.9.5 mainline version 上周。您必须使用 --with-http_v2_module 编译 nginx 以启用 HTTP/2 支持。目前还不支持server push

我写了一篇关于如何在 OS X 上使用 HTTP/2 为本地开发设置它的简单帖子,以防其他人感兴趣:http://tech.finn.no/2015/09/25/setup-nginx-with-http2-for-local-development/

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-05-04
    • 1970-01-01
    • 2018-05-25
    • 2017-03-04
    • 2020-11-06
    • 2017-05-20
    • 2018-03-11
    • 1970-01-01
    相关资源
    最近更新 更多