I'm attempting to set up the Laravel PHP Framework to work w/ Nginx. Here is my directory structure:

/project
   /application
   /laravel
   /public
      index.php
   /legacy
      /index.php
      /stylesheets
         default.css

Basically what I have is a standard Laravel download w/ a legacy folder thrown in which holds all of the files from my non MVC project.

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 fallback to Laravel's index.php file which is located in project/public/.

I'm no expert when it comes to Nginx configurations so any help that you can provide would be most appreciated.

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.