nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead

字號+ 編輯: 国内TP粉 修訂: 科学鼠辈 來源: 2023-09-11 我要說兩句(0)

按照阿里云的文档配置nginx, 发现自己的nginx版本高于1.15了, 会报如下的错误:

nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in xxx.conf:xx

如何是好呢?


原来下面的写法已经过时了:

ssl on

删掉这一行, 把上面的:

listen 443;

改成

listen 443 ssl;

这样就解决问题了。


閲完此文,您的感想如何?
  • 有用

    1

  • 沒用

    0

  • 開心

    0

  • 憤怒

    0

  • 可憐

    0

1.如文章侵犯了您的版權,請發郵件通知本站,該文章將在24小時内刪除;
2.本站標注原創的文章,轉發時煩請注明來源;
3.交流群: 2702237 13835667

相關課文
  • 防止退出linux終耑退出之後導致的nohup進程強制退出

  • Linux系統下word文档轉成pdf的辦法

  • ubuntu和debian安裝nginx或者tengine報錯, 找不到pcre依賴庫的解決辦法

  • linux終耑下借助awk命令查詢篩出網站access.log日志裡的統計信息

我要說說
網上賓友點評