VPS侦探论坛

 找回密码
 注册
查看: 3603|回复: 3

lnmp1.4 http2问题

[复制链接]
发表于 2017-4-27 15:23:45 | 显示全部楼层 |阅读模式

军哥,我已经安装好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
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-4-27 16:23:18 | 显示全部楼层


更新日志上早就说了已经默认编译了新版的1.0.2的,不需要修改lnmp.conf加参数

lnmp管理工具添加的也都是http2的

你从哪里看显示的是http/1.1,chrome上 chrome://net-internals/#http2 看的话开启了http2的是h2
chrome上不知道怎么弄的话可以 https://tools.keycdn.com/http2-test 看
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-4-27 17:55:56 | 显示全部楼层

https://tools.keycdn.com/http2-test 显示 ALPN is not supported.
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-4-27 20:18:12 | 显示全部楼层

回复 3# 的帖子




你先把2楼说的两个openssl中你自己修改lnmp.conf的去掉,重新升级后再看看

nginx配置文件看一下
只要是openssl1.0.2+版本的话ALPN肯定是支持的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-27 07:16 , Processed in 0.025890 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表