您现在的位置是: 首页 > 技术教程 > 运维技术 nginx 出现 the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in 错误解决方案
nginx 出现 the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in 错误解决方案
2020-02-15 【运维技术】 3446人已围观 5054次浏览
简介nginx 出现 the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in 错误解决方案
在nginx中使用 ssl 时,出现下面的错误提示
the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in
这是由于 nginx 版本升级到 1.15 之后才会出现的问题
在低于 1.15 的 nginx 版本中,开启 ssl 一般都是这样的配置
listen 443;
ssl on;
但是在 1.15 版本之后,就要删掉 ssl on 这行配置,并根据提示信息,将 ssl 加在端口监听的后面(也就是之前的两行配置,合并为一行即可),比如
listen 443 ssl;
然后重启 nginx 即可解决
很赞哦! (0)
点击排行
站长推荐
猜你喜欢
- CloudCone 新开通的VPS没有IPv6地址
- 如何检查搬瓦工IP是否被墙
- Just My Socks 服务器启用 obfs 混淆后客户端配置教程
- nginx 出现 the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in 错误解决方案
- SugarHosts 糖果主机 新年优惠 - SSD VPS套餐年付七折
- SIP003规范是什么
- ss 多平台客户端配置详解
- Mac系统使用v2ray客户端
- 2月PS Plus免費游戏更新 | PlayStation™Network
- 小米发布会围观攻略:全球首个米10“云开箱”+雷军“云采访”