I'm attempting to set up the Laravel PHP Framework to work with 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 fall back 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.