原文:nginx报错【the "ssl" directive is deprecated, use the "listen ... ssl" directive instead】解决办法

在nginx配置文件中加上ssl证书相关配置之后启动报出 the ssl directive is deprecated, use the listen ... ssl directive instead 错误。 查询相关资料,发现 ssl on 是一个被官方抛弃的配置项,即ssl不建议作为一个指令使用,而只是listen指令的一个参数。 因此解决办法就是只要使用 listen ssl 配置,并删 ...

2021-05-23 22:48 0 2391 推荐指数:

查看详情

nginx:[emerg]unknown directive "ssl"

nginx: [emerg] unknown directive "ssl" in /usr/local/nginx/conf/nginx.conf:102 到解压的nginx目录下 ./configure --with-http_ssl_module 当执行上面语句,出现 ...

Thu Mar 14 06:50:00 CST 2019 0 1225
nginx:[emerg]unknown directive "ssl"

在centos中,配置nginx的https时,出现如下错误。 nginx: [emerg] unknown directive "ssl" in /usr/local/nginx/conf/nginx.conf:102 ...

Wed Jan 16 23:19:00 CST 2019 0 592
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM