您现在的位置是: 首页 > 运维 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 【运维】 2375人已围观 6547次浏览
简介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)
相关文章
- 【Docker】unauthorized: incorrect username or password
- CentOS 7 安装 Golang 环境
- mybatis中大于等于小于等于的写法
- docker mysql 导入 SQL 脚本
- Linux 安装 Tengine
- Redis 提示 MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk 解决方案
- Linux 修改默认的 ssh 22 端口
- 解决Lost connection to MySQL server at 'reading initial communication packet' 的方法
- CentOS 安装Python3
- 查看MySQL默认读取的配置文件
点击排行
- 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 自动填充无效问题解决
- SpringBoot 2.x 文件上传出现 The field file exceeds its maximum permitted size of 1048576 bytes
- nuxt 项目完整部署方案
站长推荐
猜你喜欢
- python scrapy 出现 DEBUG: Filtered offsite request to 错误
- 迁移 Docker 目录
- SpringBoot 集成 Elasticsearch 7.8.1 出现错误 Factory method 'elasticsearchRestHighLevelClient' threw exception; nested exception is java.lang.NoSuchFieldError: IGNORE_DEPRECATIONS
- mysql 索引过长1071-max key length is 767 byte
- Win10 安装适用于Linux的Windows子系统
- 优化 Mac 上 office 软件更新慢的问题
- PHP 中list()出现Undefined offset: 0错误
- SpringBoot 启动提示 Requested bean is currently in creation: Is there an unresolvable circular reference?
- Android SDK版本号与API级别的对照表
- Mac禁用Adobe Creative Cloud自启状态栏