VPS侦探论坛
标题:
lnmp1.4 http2问题
[打印本页]
作者:
felix110
时间:
2017-4-27 15:23
标题:
lnmp1.4 http2问题
军哥,我已经安装好lnmp,按上述方法修改,再运行./upgrade.sh nginx 升级一下nginx
配置:Nginx_Modules_Options='--with-openssl=/root/openssl-1.1.0' 升级后重启nginx了
输出的结果:
[root@localhost lnmp1.4]# nginx -V
nginx version: nginx/1.13.0
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC)
built with OpenSSL 1.1.0 25 Aug 2016
TLS SNI support enabled
configure arguments: --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module --with-http_gzip_static_module --with-ipv6 --with-http_sub_module --with-openssl=/root/lnmp1.4/src/openssl-1.0.2k --with-openssl=/root/openssl-1.1.0
[root@localhost lnmp1.4]# openssl version
OpenSSL 1.1.0 25 Aug 2016
Chrome版本是 58.0.3029.81
Protocol 还是http/1.1
请问一下是哪里配置的问题呢?
我按照lnmp1.4的向导使用的let's的证书。
我的vps是搬瓦工的centos 6 x86
作者:
licess
时间:
2017-4-27 16:23
更新日志上早就说了已经默认编译了新版的1.0.2的,不需要修改lnmp.conf加参数
lnmp管理工具添加的也都是http2的
你从哪里看显示的是http/1.1,chrome上 chrome://net-internals/#http2 看的话开启了http2的是h2
chrome上不知道怎么弄的话可以 https://tools.keycdn.com/http2-test 看
作者:
felix110
时间:
2017-4-27 17:55
https://tools.keycdn.com/http2-test 显示 ALPN is not supported.
作者:
licess
时间:
2017-4-27 20:18
标题:
回复 3# 的帖子
你先把2楼说的两个openssl中你自己修改lnmp.conf的去掉,重新升级后再看看
nginx配置文件看一下
只要是openssl1.0.2+版本的话ALPN肯定是支持的
欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/)
Powered by Discuz! X3.4