title: Setting up Laravel with Nginx
body: <p>I'm attempting to set up the <a href="http://laravel.com/" rel="nofollow noreferrer">Laravel</a> PHP Framework to work with <a href="http://wiki.nginx.org/Main" rel="nofollow noreferrer">Nginx</a>. Here is my directory structure:</p>
  
  <pre><code>/project
     /application
     /laravel
     /public
        index.php
     /legacy
        /index.php
        /stylesheets
           default.css
  </code></pre>
  
  <p>Basically what I have is a standard <a href="http://laravel.com/" rel="nofollow noreferrer">Laravel</a> download w/ a <code>legacy</code> folder thrown in which holds all of the files from my non-MVC project. </p>
  
  <p>I need Nginx to first check if the requested page/file exists inside of legacy, if it does then I want to use that. Otherwise, I want to fall back to Laravel's <code>index.php</code> file which is located in <code>project/public/</code>. </p>
  
  <p>I'm no expert when it comes to Nginx configurations so any help that you can provide would be most appreciated.</p>