nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead
报这个错误的原因是,Nginx 自从 1.25 版本后,开启http2的配置写法有变更,旧的写法已经被标记为“过时”。
旧的写法:
server { listen 443 ssl http2; }
新的写法:
server { listen 443 ssl; http2 on; }
你可以在 登录 or 注册 后,对此帖发表评论!