Nachdem Nginx http2 aktiviert hat, ist der Zugriff immer noch http1.1
迷茫
迷茫 2017-05-16 17:12:32
0
1
542

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.

迷茫
迷茫

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

Antworte allen(1)
迷茫

是 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

Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!