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

问题:nginx开启了http2之后访问时仍然是http1.1

nginx配置相关:

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

求解惑。


慕姐8265434
浏览 2120回答 2
2回答

Helenr

请检查openssl版本,nginx上http2要求的加密算法需要较新版本的openssl支持,我自己的博客是自行编译。另外需要注意的是编译安装openssl之后还需要重新编译nginx并在编译参数中设置openssl源码路径。
打开App,查看更多内容
随时随地看视频慕课网APP