首页  >  问答  >  正文

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

求解惑。

迷茫迷茫2714 天前545

全部回复(1)我来回复

  • 迷茫

    迷茫2017-05-16 17:14:32

    是 Chrome ?

    Chrome 在最近的更新中放弃了对 NPN 的支持,如果想要继续在 Chrome 上支持 HTTP/2 ,则需要安装最新 1.0.2 版的 OpenSSL,并且用 1.0.2 的 OpenSSL 重新编译 Nginx。

    参考资料:

    1. 新版Chrome下滚回HTTP/1.1

    2. Supporting HTTP/2 for Google Chrome Users

    回复
    0
  • 取消回复