Skip to content

Instantly share code, notes, and snippets.

@ameliaikeda
Created January 17, 2014 21:38
Show Gist options
  • Save ameliaikeda/8482148 to your computer and use it in GitHub Desktop.
Save ameliaikeda/8482148 to your computer and use it in GitHub Desktop.
# osu!web
server {
listen 80;
server_name beta.osu.hiroto.eu chi.ppy.sh;
error_log /home/hiroto/Dropbox/logs/osu/error-laravel.log;
root /home/hiroto/Dropbox/osu-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