您现在的位置是: 首页 > 运维 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-05-20 【运维】 2039人已围观 6102次浏览
简介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)
点击排行
- Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR DISABLE You can't write or read against a disable instance
- Debian apt 使用国内镜像
- RocketMQ 出现 sendDefaultImpl call timeout 问题
- 类 BASE64Decoder 程序包 sun.misc 找不到符号
- SpringBoot @NotBlank 不生效问题
- 记一次 Mybatis-Plus 自动填充无效问题解决
- nuxt 项目完整部署方案
- SpringBoot 2.x 文件上传出现 The field file exceeds its maximum permitted size of 1048576 bytes
站长推荐
猜你喜欢
- Redis 提示 MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk 解决方案
- Nestedset 出现 Node must exists. 错误解决方案
- 在更新python时出现dyld: Library not loaded: /usr/local/opt/libpsl/lib/libpsl.5.dylib,Reason: image not found错误解决方案
- 解决443端口被VMWare Workstation占用
- Windows CMD 常用命令
- 删除Git仓库所有历史提交记录,成为一个干净的仓库
- linux下各文件夹的结构说明及用途介绍
- 【代码片段】MySQL新建表添加基础字段
- Python 钉钉加签 HmacSHA256 算法签名
- Linux 查看磁盘、磁盘分区、挂载磁盘、卸载磁盘操作