解决 the “listen … http2” directive is deprecated
- 发表于
- 后端
错误
1 |
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead |
解决方法
检查现有配置形式如:
1 2 |
server { listen 443 ssl http2; |
修复:nginx >= 1.25.1 的新格式为
1 2 3 |
server { listen 443 ssl; http2 on; |
更多参考:https://github.com/nginxinc/kubernetes-ingress/issues/4237
原文连接:解决 the “listen … http2” directive is deprecated
所有媒体,可在保留署名、
原文连接
的情况下转载,若非则不得使用我方内容。