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依賴庫的解決辦法

  • 常見的web中間件請求返回狀態碼

我要說說
網上賓友點評