Skip to content

Instantly share code, notes, and snippets.

@chrisnharvey
Last active December 25, 2015 17:19
Show Gist options
  • Save chrisnharvey/7012534 to your computer and use it in GitHub Desktop.
Save chrisnharvey/7012534 to your computer and use it in GitHub Desktop.
nginx configuration for Laravel
location / {
root /path/to/laravel/public;
index index.php;
if (!-e $request_filename)
{
rewrite ^/(.*)$ /index.php?/$1 last;
break;
}
location ~ /\.ht {
deny all;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment