您现在的位置是: 首页 > 技术教程 > 运维技术 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 【运维技术】 3277人已围观 4466次浏览
简介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 1核1G内存20G硬盘3TB月流量1个IPv4+3个IPv6地址 低至$3.71/月
- Kcptun 客户端配置
- 苹果已经同意支付最多5亿美元和解费 来平息“降速门”指控
- 云左主机-云虚拟主机全系列最低99/年
- 預購PS4《FINAL FANTASY VII REMAKE》實體版可獲贈「神羅公司員工ID卡與收納鐵盒」
- SugarHosts 糖果主机 新年优惠 - SSD VPS套餐年付七折
- 使用Kcptun加速VPS的好处
- nginx 出现 the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in 错误解决方案
- CloudCone 新开通的VPS没有IPv6地址
- 任天堂Switch主机的9.2.0系统更新已经正式上线