2013年8月3日星期六

In cloudfoundry configure https service following problems arise

I modified vi conf / nginx.conf as follows

server {
ssl on;
ssl_certificate / secretfiles / froggy.crt;
ssl_certificate_key / secretfiles / froggy.key;

listen 443;
server_name localhost;
}
executed next sbin / nginx-t the following situations occur
[emerg]: unknown directive "ssl" in / root/cloudfoundry/.deployments/devbox/deploy/nginx/nginx-0.8.54/conf/nginx.conf: 152
configuration file / root/cloudfoundry/.deployments/devbox/deploy/nginx/nginx-0.8.54/conf/nginx.conf test failed
love heroes help see what happens, what is the solution?


------ Solution ------------------------------------ --------
Reference: https://github.com/cloudfoundry-collaboration/vcap/wiki/Setup-SSL-on-cloudfoundry-landscape

main narrative:
The nginx server that cloudfoundry installs by default has no ssl support. In order to enable ssl support you have to download the sources and compile it with - with-http_ssl_module option. Run the following command nginx-V. This will print all compile-time options ; of nginx. Copy these options and recompile nginx with the same options plus the - with-http_ssl_module. Note that you need to have ; OpenSSL installed! Here is the complete set of steps:
1.Download the latest sources with wget http://nginx.org/download/nginx-0.7.69.tar.gz

2.Extract the archive with tar-xzf nginx-0.7.69.tar.gz

3. cd nginx-0.7.69
4.Execute nginx-V - this will show the compiletime opts of nginx. Copy these options.
5.Execute. / configure with the options from step 4 plus the extra option - with-http_ssl_module
6.Execute make

7.Execute make install

------ For reference only ---------------------------------- -----
my reference to the article, which appeared in the following command line following questions
root @ vf-v2 :/ usr / local / nginx # sbin / nginx-s reload
[error]: invalid PID number "" in "/ usr / local / nginx / logs / nginx.pid"
I think it is not, and comes with nginx cloudfoundry about, what is the solution?

没有评论:

发表评论