nginx启动报错 nginx: [emerg] https protocol requires SSL su

深碍√TFBOYSˉ_ 2022-10-31 00:42 325阅读 0赞

参考文献:https://blog.csdn.net/zx1323/article/details/76794461

nginx启动报错 nginx: [emerg] https protocol requires SSL su

  • 代理里面包含https

    location /rest/ {

    1. proxy_pass https://aip.baidubce.com/rest/;

    }

解决方案:

在安装编译的时候 需要配置 ssl支持

  1. ./configure --prefix=/usr/local/nginx --with-http_ssl_module
  2. make
  3. make install
  4. /usr/local/nginx/sbin/nginx -t 查看配置信息是否正确

注意:如果该目录以及有原来生成的文件,建议删除掉重新make install

  1. nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
  2. nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successfu

安装成功

发表评论

表情:
评论列表 (有 0 条评论,325人围观)

还没有评论,来说两句吧...

相关阅读