問題:nginx開啟了http2之后訪問時仍然是http1.1nginx配置相關: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求解惑。
2 回答

Helenr
TA貢獻1780條經驗 獲得超4個贊
請檢查openssl版本,nginx上http2要求的加密算法需要較新版本的openssl支持,我自己的博客是自行編譯。
另外需要注意的是編譯安裝openssl之后還需要重新編譯nginx并在編譯參數中設置openssl源碼路徑。
- 2 回答
- 0 關注
- 2317 瀏覽
添加回答
舉報
0/150
提交
取消