当前位置:编程学习 > 网站相关 >>

当我执行sbin/nginx -t 出现下面的问题,虽能帮我解决。

我在cloudfoundry/.deployments/devbox/deploy/nginx/nginx-0.8.54/conf/nginx.conf 配置如下
server {       
 listen       443 default ssl ;       
 server_name  localhost;   
 if ($server_port = 443) { set $https on; }   
 if ($server_port = 80) { set $https off; }      
  ssl                  on;        
 ssl_certificate      /var/vcap/ssl/cfsupp1.crt;       
 ssl_certificate_key  /var/vcap/ssl/cfsupp1.key;      
  rewrite ^(.*) http://domain.com$1 permanent;       
 ssl_session_timeout  5m;       
 ssl_protocols  SSLv2 SSLv3 TSv1;        
 ssl_ciphers  ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;       
 ssl_prefer_server_ciphers   on;}
执行下面的语句出现错误:
root@cf001:~/cloudfoundry/.deployments/devbox/deploy/nginx/nginx-0.8.54# 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:98configuration file /root/cloudfoundry/.deployments/devbox/deploy/nginx/nginx-0.8.54/conf/nginx.conf test failed
补充:云计算 ,  Cloud Foundry
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,