您现在的位置是: 首页 > 技术教程 > 运维技术 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 【运维技术】 1326人已围观 1523次浏览
简介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)
点击排行
站长推荐
猜你喜欢
- SugarHosts 糖果主机 新年优惠 - SSD VPS套餐年付七折
- nginx 出现 the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in 错误解决方案
- Debian/Ubuntu无netstat命令解决方案
- Just My Socks 详细购买流程
- CloudCone 如何申请提现
- SIP003规范是什么
- NS加入者限定 Dead Cells 死亡细胞免费试玩
- 【腾讯云】云产品采购季,助力行业复工。1核2G云服务器,首年99元
- Hostdare 优质中国优化KVM VPS
- Mac系统使用v2ray客户端