1. 程式人生 > >nginx 報錯 : [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead

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

最近升級到 nginx 1.15,reload之後所有帶 ssl 的站點都報這個警告了,查了很多資料,最後在 github 上面找到了一條相關的英文說明: ( https://github.com/voxpupuli/puppet-nginx/issues/1224 ) 本人英文不好,大概意思應該是說 nginx 1.15 及以後的版本,不需要再寫 ssl on; 了。

去 nginx.conf 刪掉 ssl on; 之後,reload,果然沒再報警,目前使用沒啥問題。

如果我理解錯了,請大家聯絡我一下,共同進步。微笑