title: Ubuntu Nginx new ssl certificate not working?
body: <p>I am using ubuntu 14.04 and nginx.</p>
  
  <p>I just generated my csr and bought an EV SSL cert from comodo.  My .conf file in my sites-enabled directory is:</p>
  
  <pre><code>server {
      listen       80;
      server_name  example.com;
      return       301 https://www.example.com$request_uri;
  }
  
  server {
          listen 80;
          listen [::]:80;
  
          listen 443 ssl;
  
          root /var/www/example.com/public_html;
          index index.php index.html index.htm;
  
          server_name www.example.com;
          ssl_certificate /etc/nginx/ssl/example.crt;
          ssl_certificate_key /etc/nginx/ssl/example.key;
  
          location / {
                  try_files $uri $uri/ /index.php?$args;
          }
  
     location ~ \.php$ {
                  try_files $uri =404;
                  fastcgi_pass unix:/var/run/php5-fpm.sock;
                  fastcgi_index index.php;
                  include fastcgi_params;
          }
  }
  </code></pre>
  
  <p>I restarted a nginx but my <a href="http://www.example.com" rel="nofollow">http://www.example.com</a> just times out as if I have done nothing.  No errors in the nginx log.  I have confirmed my files are in the right spots.  Is there anything in my example.conf file that is preventing https from working?  Also, comodo send me 4 files and I concatenated them all into the example.crt file, should I have concatenated it into a .PEM file instead?</p>
  
  <p>I have also confirmed that the crt and key files match using the following commands:</p>
  
  <pre><code>openssl x509 -noout -modulus -in example.crt | openssl md5
  
  openssl rsa -noout -modulus -in example.key | openssl md5
  </code></pre>
  
  <p>This is my first attempt at installing an ssl cert on nginx.  Also, the cert is an interim one until comodo verifies my site.</p>