为了账号安全,请及时绑定邮箱和手机立即绑定

nginx开启http2之后访问仍然是http1.1

nginx开启http2之后访问仍然是http1.1

慕姐8265434 2018-07-22 17:17:36
问题:nginx开启了http2之后访问时仍然是http1.1nginx配置相关:listen 443 ssl http2;安装时配置:configure arguments: --prefix=/usr/local/nginx --with-http_ssl_module --with-ipv6 --with-http_v2_module错误日志中无报错。nginx -t测试命令结果:nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful求解惑。
查看完整描述

2 回答

?
Helenr

TA贡献1780条经验 获得超3个赞

请检查openssl版本,nginx上http2要求的加密算法需要较新版本的openssl支持,我自己的博客是自行编译。
另外需要注意的是编译安装openssl之后还需要重新编译nginx并在编译参数中设置openssl源码路径。

查看完整回答
反对 回复 2018-07-26
  • 2 回答
  • 0 关注
  • 2117 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信