前言

  • CentOS Linux release 8.2.2004 (Core)
  • phpstdy X1.26
  • nginx1.15

错误内容

nginx: [warn] the “ssl” directive is deprecated, use the “listen … ssl” directive instead in /usr/local/phpstudy/vhost/nginx/1xxx.com_80.conf:6

分析

http://nginx.org/en/docs/mail/ngx_mail_ssl_module.html#ssl

This directive was made obsolete in version 1.15.0. The ssl parameter of the listen directive should be used instead.

解决办法

  1. 删除 ssl on; 指令
  2. listen 指令中添加 ssl 参数
server{listen 80 ;listen 443 default ssl;server_name xxx.com ;ssl_certificate /usr/local/phpstudy/vhost/nginx/ssl/20210709_xxx.com.pem;ssl_certificate_key /usr/local/phpstudy/vhost/nginx/ssl/20210709_xxx.com.key;...
}

nginx: [warn] the “ssl“ directive is deprecated, use the “listen ... ssl“ directive instead in相关推荐

  1. nginx: [warn] the “user“ directive makes sense only if the master process runs with super-user

    nginx: [warn] the "user" directive makes sense only if the master process runs with super- ...

  2. nginx: [warn] the user directive makes sense only if the master process runs with super-user privi

    普通用户在restart和reload nginx时,会报错: nginx: [warn] the "user" directive makes sense only if the ...

  3. nginx: [warn] the user directive makes sense only if the master process runs with super-user

    普通用户在restart和reload nginx时,会报错: nginx: [warn] the "user" directive makes sense only if the ...

  4. nginx: [warn] conflicting server name localhost on 0.0.0.0:80, ignored

    修改nginx配置参数后,使用nginx -t检查配置. 提示successfull后就可以使用 nginx -s reload来重新加载配置 我配置的过程中遇到这样的问题,就是绑定了主机名后,重新加 ...

  5. nginx支持text html,BT面板重启Nginx提示“nginx: [warn] duplicate MIME type “text/html””解决办法...

    很多时候我们在进行了一系列站点优化配置后,经常会出现一些未知的问题.比如虾皮路之前就遇到过了,在BT宝塔面板里面重启Nginx或者重载Nginx的时候,提示"nginx: [warn] du ...

  6. nginx: [warn] conflicting server name “www.yqq.org“ on 0.0.0.0:80, ignored

    实现nginx重定向,出现下述警告: [root@lnmp1 conf]# nginx -s reload nginx: [warn] conflicting server name "ww ...

  7. #*nginx: [warn] conflicting server name “localhost“ on 0.0.0.0:80, ignored

    #*nginx: [warn] conflicting server name "localhost" on 0.0.0.0:80, ignored 分析原因 修改nginx配置参 ...

  8. nginx: [warn] conflicting server name aaa.bbbb.com on 0.0.0.0:80, ignored

    date: 2019-08-12  16:52:44 author: headsen chen notice :个人原创 故障现象: openresty -t nginx: [warn] confli ...

  9. nginx: [warn] conflicting server name “localhost“ on 0.0.0.0:80, ignored

    修改nginx配置参数后,使用nginx -t检查配置. 提示successfull后就可以使用 nginx -s reload来重新加载配置 我配置的过程中遇到这样的问题,就是绑定了主机名后,重新加 ...

最新文章

  1. python把c语言的.h文件转为c++的.cpp和.h文件
  2. 永远不要在 MySQL 中使用 UTF-8
  3. Python 爬虫学习 系列教程
  4. c语言wpf99乘法表,使用JSP输出九九乘法表
  5. oracle试图执行计划,Oracle SQL优化与调优之显示执行计划(上)
  6. 为什么你设计的网页不够惊艳?
  7. 从三大标准衡量hypervisor
  8. 搞定机器学习面试,这些是基础!
  9. IP转发的最长前缀匹配
  10. linux密码带星号,Shell实现输入密码并显示星号
  11. Android(Linux) led子系统分析
  12. 【数字信号调制】基于ASK+OOK+BPSK+8PSK+QPSK+AM多种算法实现信号调制解调含Matlab源码
  13. BeautifulSoup爬取豆瓣电影top250信息
  14. element-ui轮播图片显示问题
  15. windows 7z命令行压缩
  16. 关于使用sdkmanager命令报错(环境:Mac+Android SDK)
  17. 万兆局域网方案_万兆内网初体验
  18. 双非一本考研国防科技大学计算机,不歧视“双非”,保护一志愿!40所“良心”大学值得推荐!...
  19. 小程序怎么清服务器缓存,怎么清理微信小程序缓存 微信小程序缓存删除的方法...
  20. 烘焙门店 | 解锁公众号精准引流5W+的流量密码

热门文章

  1. 碰碰车司机教你Linux下使用nmon分析系统性能
  2. UVA11825: Hackers' Crackdown (状压dp)
  3. 手工、工具分别实现cookie注入
  4. PHP案例 网页计数器设计
  5. [转载]在VirtualBox中收缩虚拟磁盘映像文件
  6. 菜鸟学Java(七)——Ajax+Servlet实现无刷新下拉联动
  7. 需求管理工具比较 Doors_Requistie Pro_RDM
  8. [MSSQL]ROW_NUMBER函数
  9. kettle的基本介绍
  10. 计算机检索技巧知识,初学者常用电脑技巧知识