您现在的位置是: 首页 > 技术教程 > 运维技术 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 【运维技术】 3791人已围观 5544次浏览
简介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)
点击排行
站长推荐
猜你喜欢
- 任天堂Switch主机的9.2.0系统更新已经正式上线
- CloudCone VPS 1核1G内存20G硬盘3TB月流量1个IPv4+3个IPv6地址 低至$3.71/月
- 搬瓦工VPS详细购买流程
- 苹果已经同意支付最多5亿美元和解费 来平息“降速门”指控
- 《塞尔达传说:旷野之息》神奇技巧大集合
- nginx 出现 the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in 错误解决方案
- 使用Kcptun加速VPS的好处
- 【腾讯云】云产品采购季,助力行业复工。1核2G云服务器,首年99元
- 雷军新年第一怼:小米10处理器AI性能比友商高30%
- Mac系统使用v2ray客户端