search

Home  >  Q&A  >  body text

After nginx turns on http2, the access is still http1.1

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.

迷茫迷茫2835 days ago605

reply all(1)I'll reply

  • 迷茫

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

    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

    reply
    0
  • Cancelreply