title: Install ssl certificate Nginx port 443 refuse connection
body: <p>I have installed my certificate and configured my nginx to listen to port 443. But still cannot connect to port 443. Missing something??</p>
  
  <p>In my ssl.conf</p>
  
  <h1>HTTPS server configuration</h1>
  
  <p>#</p>
  
  <pre><code>server {
  listen   443 ssl;
  server_name  www.newbullets.co.nz newbullets.co.nz;
  
  ssl                  on;
  ssl_certificate  /etc/ssl/certs/ssl-bundle.crt;
  ssl_certificate_key  /etc/ssl/server.key;
  
  ssl_session_timeout  5m;
  
  
  #location / {
  #    root   html;
  #    index  index.html index.htm;
  #}
  </code></pre>
  
  <p>}</p>
  
  <p>and default.config</p>
  
  <pre><code>server {
  listen   80;
  server_name  newbullets.co.nz www.newbullets.co.nz;
  #charset koi8-r;
  #access_log  logs/host.access.log  main;
  
  location / {
   auth_basic "input you user name and password";
   auth_basic_user_file /var/www/www.newbullets.co.nz/.htpasswd;
      root   /usr/share/nginx/html/nb/;
      index  index.html index.htm index.php;
      try_files $uri $uri/ @handler;
  }
  </code></pre>
  
  <p>Update</p>
  
  <p>I added following to my ssl.conf, now in Firefox it displays the webpage but SSL green bar is gone, and Chrome still downloads the webpage. any idea?</p>
  
  <pre><code> location ~ \.php$ {
      root           html;
      fastcgi_pass   127.0.0.1:9000;
      fastcgi_index  index.php;
      fastcgi_param  SCRIPT_FILENAME  /usr/share/nginx/html/nb$fastcgi_script_name;
      fastcgi_param MAGE_RUN_CODE default;
      fastcgi_param MAGE_RUN_TYPE store;
      include        fastcgi_params;
  }
  </code></pre>