Heim  >  Fragen und Antworten  >  Hauptteil

Nachdem Nginx http2 aktiviert hat, ist der Zugriff immer noch http1.1

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

nginxKonfigurationsbezogen:

 listen         443 ssl http2;

Konfiguration während der Installation:

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

Keine Fehler im Fehlerprotokoll gemeldet.

nginx -tTestbefehlsergebnisse:

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

Bitte lösen Sie Ihre Zweifel.

迷茫迷茫2714 Tage vor547

Antworte allen(1)Ich werde antworten

  • 迷茫

    迷茫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

    Antwort
    0
  • StornierenAntwort