title: NGINX - No input file specified. - php Fast/CGI
body: <p>Hi I need help in setting config for nginx. I am new to NGINX and facing some issues.</p>
  
  <p>In my <code>sites-available</code> there is <code>default</code> file</p>
  
  <p>It contain below code</p>
  
  <pre><code>server {
      server_name www.test.com test.com;
      access_log /sites/test/logs/access.log;
      error_log /sites/test/logs/error.log;
      root /sites/test;
  
   location ~ / {
  
  index index.php
      include /etc/nginx/fastcgi_params;
      fastcgi_pass  127.0.0.1:9000;
      fastcgi_index index.php;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  }
  </code></pre>
  
  <p>Above code works perfectly when I write URL </p>
  
  <pre><code>www.test.com/service/public/
  </code></pre>
  
  <p>when I write</p>
  
  <p><code>www.test.com/service/public/testservice</code> (testservice is folder within public) it says <code>No input file specified.</code></p>
  
  <p>How to fix it. 
  thanks in advance.</p>
  
  <p>I tried below, but no luck</p>
  
  <pre><code>http://nginxlibrary.com/resolving-no-input-file-specified-error/
  http://blog.martinfjordvald.com/2011/01/no-input-file-specified-with-php-and-nginx/
  </code></pre>