nginx启动报错 nginx: [emerg] https protocol requires SSL support in /usr/mysoftware/nginx/conf/nginx....

运行nginx 测试时报错:

[root@dajia sbin]# ./nginx 
nginx: [emerg] https protocol requires SSL support in /usr/mysoftware/nginx/conf/nginx.conf:48

原因:

当初编译的时候没有启用SSL支持
在配置反向代理到 https的网站时,编辑配置文件报错,无法启动nginx

nginx启动报错 nginx: [emerg] https protocol requires SSL support in /usr/mysoftware/nginx/conf/nginx...._第1张图片

解决方案:

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

./configure --prefix=/usr/local/nginx --with-http_ssl_module

你可能感兴趣的:(nginx启动报错 nginx: [emerg] https protocol requires SSL support in /usr/mysoftware/nginx/conf/nginx....)