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


1,nginx重啟報錯
[warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead
如圖:

vim nginx.conf
:set nu
2,查看配置文件

3,119行錯誤,所以我把寫法改成listen 443 ssl;
如圖:

/usr/local/nginx/sbin/nginx -s reload重啟
正常


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM