title: Nginx alias and php-fastcgi: No input file specified
body: <p>I have domain configured as followed:</p>
  
  <pre><code>server {
      listen       80;
      root   /var/www/domains/somedomain/root;
  
      location = /service/alias/ {
          alias /var/www/service/alias/;
          index index.php;
      }
  
      location ~ \.php$ {
          try_files $uri =404;
          fastcgi_pass   127.0.0.1:9000;
          fastcgi_index  index.php;
          fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
          include        fastcgi_params;
      }
  }
  </code></pre>
  
  <p>I want to execute the <code>index.php</code> file in <code>/var/www/service/alias/</code> when someone requests <a href="http://example.com/service/alias" rel="nofollow">http://example.com/service/alias</a>. I've tried many variations (putting the FastCGI parameters in the location and supply the full path for the <code>index.php</code> script), but i keep getting "No input file specified" errors from php-fastcgi. </p>
  
  <p>Anyone an idea of what i'm doing wrong? Or at least how can Ii log the full errors of php-fastcgi?</p>