您现在的位置是: 首页 > 技术教程 > 运维技术 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 【运维技术】 3715人已围观 5443次浏览
简介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系统更新已经正式上线
- Linux服务器ssh连接自动断开问题解决方案
- 小米发布会围观攻略:全球首个米10“云开箱”+雷军“云采访”
- 2020年搬瓦工最新优惠码,优惠最高6.58%
- nginx 出现 the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in 错误解决方案
- NS加入者限定 Dead Cells 死亡细胞免费试玩
- 苹果已经同意支付最多5亿美元和解费 来平息“降速门”指控
- 【腾讯云】云产品采购季,助力行业复工。1核2G云服务器,首年99元
- Mac 电脑给 Switch 主机加速教程
- 铁路加强疫情防控:#禁售无座车票# #餐车不再接待就餐#