title: File not found error from nginx on a virtual machine where /var/www/ is mounted from host file structure
body: <p>I am trying to set up a rather complex development environment as a virtual Ubuntu 12.04 server.</p>
  
  <p>In order that I can edit files and immediately see the change at the refresh of the page as you would expect with a normal local development situation, I have the php source code on the host operating system (mint 14) in ~/www/site1 which I have added as a persistent shared folder to virtualbox and then mount on the virtual machine</p>
  
  <pre><code>mount -t vboxsf site1 /var/www
  </code></pre>
  
  <p>if I ls /var/www -la I see all the php files but when I try to access the virtual machine from the browser, I get File not found errors on the page and the error.log for the subdomain reports <strong>FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream"</strong>.  The exception is the subdomain phpmyadmin.virtualmachine which loads up perfectly so I know that nginx is serving the correct file structure for the requested subdomain.</p>
  
  <p>As a test I created a subdomain info.virtualmachine which points to /var/test and the index.php is the simplest phpinfo() and this works so I can only presume that nginx is not reading the mounted vboxsf file structure /var/www correctly as all "local" files on the guest OS are viewable.</p>
  
  <p>Nginx has been configured to run as root as have all other services.  Is this a known bug with nginx or something that I need to configure to allow nginx to see the mounted vboxsf share?</p>