Skip to content

Instantly share code, notes, and snippets.

View crushcafeteria's full-sized avatar

Nelson Ameyo crushcafeteria

  • Nairobi, Kenya
View GitHub Profile
@crushcafeteria
crushcafeteria / default.conf
Created June 29, 2017 08:16
Sample Nginx Laravel Server Block
server {
listen 80 default_server;
root /var/www/laravel/public;
index index.php index.html index.htm;
server_name _;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
try_files $uri /index.php = 404;