title: Nginx showing 404 Not Found for every page but homepage
body: <p>I am trying to run a php app on nginx server on ubuntu. I did put all my files in var/www/mydomain.com.html It's rendering my index.php perfectly. But showing 404 Not Found for every other page even though those files are exists in the same directory. </p>
  
  <p>Here is my server block configuration. </p>
  
  <pre><code>server {
  listen   80; ## listen for ipv4; this line is default and implied
  listen   [::]:80; ## listen for ipv6
  
  root /var/www/app.limoposter.com/html;
  index index.php index.html index.htm;
  
  server_name app.limoposter.com www.app.limoposter.com;
  
  location / {
      try_files $uri $uri/ =404;
  
  }
  
  error_page 404 /404.html;
  error_page 500 502 503 504 /50x.html;
  location = /50x.html {
      root /usr/share/nginx/html;
  }
  
  location ~ \.php$ {
      try_files $uri =404;
      fastcgi_split_path_info ^(.+\.php)(/.+)$;
      fastcgi_pass unix:/var/run/php5-fpm.sock;
      fastcgi_index index.php;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      include fastcgi_params;
  }
  </code></pre>
  
  <p>}</p>