NGINX Rewrite for Laravel

Recently I’ve found a new PHP framework, the Laravel (http://laravel.com/). I bought a book about it (https://leanpub.com/codebright), that by the way it’s excellent, and went to study to use Laravel on a new project.

As always, my first challenge is doing a functional configuration on NGINX, to make Laravel running straight, and as CakePHP and WordPress, it comes with .htaccess ready for Apache. The book shows a configuration to a project that is based on the root of a webserver, but I put all my projects on subfolders on the VM that I use to develop, so it’s not the same thing as the book shows.

Continue reading “NGINX Rewrite for Laravel”