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;
}
山不见我 我去见山 www.jianshan.org
➦