After nginx turns on http2, the access is still http1.1
迷茫
迷茫 2017-05-16 17:12:32
0
1
538

Problem: nginxAfter opening http2, the access is still http1.1

nginxConfiguration related:

 listen         443 ssl http2;

Configuration during installation:

configure arguments: --prefix=/usr/local/nginx --with-http_ssl_module --with-ipv6 --with-http_v2_module

There is no error reported in the error log.

nginx -tTest command results:

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

Solve your doubts.

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(1)
迷茫

Is it Chrome?

Chrome has dropped support for NPN in recent updates. If you want to continue to support HTTP/2 on Chrome, you need to install the latest 1.0.2 version of OpenSSL and recompile Nginx with 1.0.2 OpenSSL.

Reference:

  1. Roll back to HTTP/1.1 in the new version of Chrome

  2. Supporting HTTP/2 for Google Chrome Users

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!