Nginx SSL not working

Jack Renshaw asked:

I’m running a debian squeeze webserver with nginx, and i can’t get SSL to work. The error that i get isn’t from apache, but from the client web browser, with a “Connection timeout error”

I have purchased an SSL certificate from StartSSL, and when that didn’t work, i tried generating my own just to troubleshoot. Both yielded the same error, and neither worked and my nginx log isn’t showing anything.

My SSL config looks like this:

server {
            listen 443 default_server ssl;
            server_name tarror.org www.tarror.org;
            ssl on;
            ssl_certificate      /srv/ssl/nginx.pem;
            ssl_certificate_key  /srv/ssl/nginx.key;

            root /wdata/tarror.org;
            index index.php index.htm index.html;

            location ~ .php$ {
              fastcgi_pass   127.0.0.1:9000;
              fastcgi_index  index.php;
              fastcgi_param  SCRIPT_FILENAME /wdata/tarror.org$fastcgi_script_name;
              include fastcgi_params;
            }
   }

My answer:


Open port 443 in your web server’s firewall.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.