Skip to content

Instantly share code, notes, and snippets.

@ameliaikeda
Created January 27, 2014 16:38
Show Gist options
  • Save ameliaikeda/8652058 to your computer and use it in GitHub Desktop.
Save ameliaikeda/8652058 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name localhost marcin.dkun.us; # aliases
root /path/to/laravel/public;
index index.php index.html;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
# php5-fpm fastcgi pass.
location ~ \.php$ {
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_intercept_errors off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment