nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead

在添加vhost的时候遇到了一个错误提示:“nginx: [warn] the “listen … http2” directive is deprecated, use the “http2” directive instead”,然后搜索了一下发现NGINX最近确实有这个毛病,解决办法:

修改conf配置文件,改为:

listen 443 ssl;
listen [::]:443 ssl;
http2 on;

 

官方的说明:https://www.f5.com/company/blog/nginx/nginx-plus-r30-released

本站QQ群:812451114,联系站长:zhujiceping@vip.qq.com