Skip to content

Instantly share code, notes, and snippets.

@henter
Created May 14, 2014 08:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save henter/9be4e224763d4bf15b6e to your computer and use it in GitHub Desktop.
Save henter/9be4e224763d4bf15b6e to your computer and use it in GitHub Desktop.
location /stats/ {
alias /Users/henter/Work/stats/;
location ~ .php {
set $path_info "";
if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)") {
set $path_info $2;
}
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
fastcgi_param PATH_INFO $path_info;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment