title: nginx ssl not working - 404 File Not Found
body: <p>environment:</p>
  
  <p>Linux Server - ubuntu
  Web Server - nginx
  Scripting - php5, fastcgi
  Ports - default - 80/443
  Php framework - codeigniter</p>
  
  <p>i have a website which has been made with codeigniter, and is working absolutely fine under http, i have setup a ssl certificate and I am unable to get the subsequent pages work, home page is working fine in https.</p>
  
  <p>FYI: The website is made with url rewrite, I dont know whether Nginx or FPM or Codeigniter handles the rewrite, but we have working urls as <a href="http://domain.com/contact" rel="nofollow">http://domain.com/contact</a></p>
  
  <p>In Nginx log file i see a 404 page not found error. If I create a directory under the home folder as test and create a file as hello.php, I am able to see it through HTTPS and HTTP, but not other links are working.</p>
  
  <p>I assure that - </p>
  
  <ol>
  <li>I am pointing to the right folder in http, https</li>
  <li>The key file does not has a password</li>
  <li>I have included the chain / root certificates</li>
  <li>I have no firewall / proxy / cache server in between</li>
  </ol>
  
  <p>I dont know which one among nginx/codeigniter/php-fpm is handling the url rewrite, and i am sure the error is due to url_rewrite not working in https/ssl mode.</p>
  
  <p>Please Help</p>