当执行 nginx -s reload 时报出:
nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /etc/nginx/conf.d/xxx.conf:29
原来可能这样写:
server {
listen 443 ssl;
server_name www.zixi.org;
ssl on;
...
现在直接去掉ssl on;
这一行即可。