nginx開啟http2之後造訪仍是http1.1
迷茫
迷茫 2017-05-16 17:12:32
0
1
543

問題: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

求解惑。

迷茫
迷茫

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

全部回覆(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

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!