nginx SSL 错误

use*_*933 4 ssl nginx

当我运行时sbin/nginx -t 出现以下错误

[emerg]: the "ssl" parameter requires ngx_http_ssl_module in /root/cloudfoundry/.deployments/devbox/deploy/nginx/nginx-0.8.54/conf/nginx.conf:98
configuration file /root/cloudfoundry/.deployments/devbox/deploy/nginx/nginx-0.8.54/conf/nginx.conf test failed
Run Code Online (Sandbox Code Playgroud)

B14*_*4D3 7

看起来您的 nginx 尚未使用 ngx_http_ssl_module 构建。查看nginx -V如果没有--with-http_ssl_module参数则 ssl 将不起作用的输出

  • 下载 openssl:`wget https://www.openssl.org/source/openssl-1.0.1t.tar.gz` 转到 nginx 源文件夹并:`./configure --with-http_ssl_module --with-openssl=/ home/ubuntu/openssl-1.0.1t` `make -j2` `make install` (3认同)