Created
January 27, 2014 16:38
-
-
Save ameliaikeda/8652058 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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