問題:nginx開啟了http2之后訪問時(shí)仍然是http1.1nginx配置相關(guān):listen 443 ssl http2;安裝時(shí)配置:configure arguments: --prefix=/usr/local/nginx --with-http_ssl_module --with-ipv6 --with-http_v2_module錯誤日志中無報(bào)錯。nginx -t測試命令結(jié)果: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貢獻(xiàn)1780條經(jīng)驗(yàn) 獲得超4個贊
請檢查openssl版本,nginx上http2要求的加密算法需要較新版本的openssl支持,我自己的博客是自行編譯。
另外需要注意的是編譯安裝openssl之后還需要重新編譯nginx并在編譯參數(shù)中設(shè)置openssl源碼路徑。
- 2 回答
- 0 關(guān)注
- 2388 瀏覽
添加回答
舉報(bào)
0/150
提交
取消