title: How to handle files in case-sensitive way in Vagrant on Windows host
body: <p>On My Windows 8 I've installed VirtualBox + Vagrant. I used <a href="http://laravel.com/docs/4.2/homestead#included-software" rel="nofollow">Laravel Homestead (with Ubuntu)</a> as box. When running site on this VM or running command line I would expect it is being run on Linux and not on Windows. But I found some strange issue:</p>
  
  <p>First my folder mappings:</p>
  
  <pre><code>folders:
      - map: D:\DaneAplikacji\easyphp\data\localweb\projects\testprovag\strony
        to: /home/vagrant/code
  
  sites:
      - map: learn.app
        to: /home/vagrant/code/my-first-app/public
  </code></pre>
  
  <p>When I run in my browser <code>http://learn.app:8000</code> I got correct output - page from <code>/home/vagrant/code/my-first-app/public</code> what is the same as code from <code>D:\DaneAplikacji\easyphp\data\localweb\projects\testprovag\strony\my-first-app/public</code> just to be clear.</p>
  
  <p><strong>Now the problem:</strong></p>
  
  <p>In my <code>public</code> folder I've created 2 simple files:</p>
  
  <p>File with name <code>test</code>  (it's empty) and file <code>index.php</code> with content:</p>
  
  <pre><code>&lt;?php 
  
  if (file_exists('TEST')) {
      echo "file exists";
  }
  else {
      echo "file NOT exists";
  }
  </code></pre>
  
  <p>So now I run <code>http://learn.app:8000</code> in browser and I get output <code>file exists</code>. This is the result I wouldn't expect. As far as I know in Linux (my box is Ubuntu) you may have files with different case in names (in opposite to Windows) so I would expect I got <code>file NOT exists</code>. </p>
  
  <p>I've tested it in my VM running <code>php index.php</code> and I get exact same result <code>file exists</code> what is again unexpected. </p>
  
  <p>Now what I did I copied those 2 files to other directory on my VM <code>/home/vagrant/TESTS</code> - this directory is not mapped using Vagrant. Now when I run  <code>php index.php</code> I get <code>file NOT exists</code> what is expected result.</p>
  
  <p>To be honest I completely doesn't understand it. <strong>Question</strong> - does PHP when using Vagrant mapping operating on VM filesystem (in this case Ubuntu) or on Virtual BOX host filesystem (in my case Windows). Is there any way to make it work to get desired result? I know this question might be a bit software related but it's really connected to PHP and Laravel and maybe I miss something here.</p>