Skip to content

Instantly share code, notes, and snippets.

@xralphack
Created April 26, 2017 07:14
Show Gist options
  • Save xralphack/f0fcc971957d02c8e8339f1a04ccecef to your computer and use it in GitHub Desktop.
Save xralphack/f0fcc971957d02c8e8339f1a04ccecef to your computer and use it in GitHub Desktop.
nginx conf for laravel
# the following directive in your site configuration will direct all requests to the index.php front controller
location / {
try_files $uri $uri/ /index.php?$query_string;
}
# use phpfpm to process .php files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment