- 积分
- 52
- 威望
-
- 金钱
-
- 注册时间
- 2012-9-4
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|

楼主 |
发表于 2016-3-6 22:04:33
|
显示全部楼层
Yeah! www.17huiwei.com supports HTTP/2.0.
ALPN is not supported.
上面支持,下面的ALPN是什么东西?没有查到
nginx 官方查到了 http://nginx.org/en/docs/http/ngx_http_v2_module.html
其中有一段 Note that accepting HTTP/2 connections over TLS requires the “Application-Layer Protocol Negotiation” (ALPN) TLS extension support, which is available only since OpenSSL version 1.0.2. Using the “Next Protocol Negotiation” (NPN) TLS extension for this purpose (available since OpenSSL version 1.0.1) is not guaranteed.
好像要1.0.2的OPENSSL才能支持。我升级一下试试看
=======================
估计是升级的办法不对,我用 https://yusky.me/centos-openssl-updateed-1-0-1g.html 这种办法升级,通过openssl version -a查询,版本号是1.0.2了,但是还是显示ALPN is not supported!
建议军哥在lnmp 1.3 beta的改进版里面把OPENSSL也升级了
=======================
再次更新nginx,想重新编译openssl,结果挂了……
另外,找到一篇文章 https://www.xdty.org/1896 作者下面有回复
編譯的系統上裝的openssl 必須是1.0.2以上版本, 否則編譯出來的nginx 不支持 ALPN, 在某些瀏覽器上無法以http2 運作的
https://www.nginx.com/blog/http2-module-nginx/ 这里也有一段说明
It’s actually very simple. All you need to do is just add the HTTP/2 parameter to the listen directive. Probably the most complicated step here is to get the latest version of OpenSSL because HTTP/2 requires the ALPN extension, and the ALPN extension is only supported by OpenSSL 1.0.2.
[ 本帖最后由 loren 于 2016-3-6 22:52 编辑 ] |
|