nginx启动报错 nginx: [emerg] https protocol requires SSL su
参考文献:https://blog.csdn.net/zx1323/article/details/76794461
nginx启动报错 nginx: [emerg] https protocol requires SSL su
代理里面包含https
location /rest/ {
proxy_pass https://aip.baidubce.com/rest/;
}
解决方案:
在安装编译的时候 需要配置 ssl支持
./configure --prefix=/usr/local/nginx --with-http_ssl_module
make
make install
/usr/local/nginx/sbin/nginx -t 查看配置信息是否正确
注意:如果该目录以及有原来生成的文件,建议删除掉重新make install
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successfu
安装成功
还没有评论,来说两句吧...