首頁  >  問答  >  主體

nginx開啟http2之後造訪仍是http1.1

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

求解惑。

迷茫迷茫2714 天前550

全部回覆(1)我來回復

  • 迷茫

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

    回覆
    0
  • 取消回覆