Skip to content

Instantly share code, notes, and snippets.

@shadowhand
Created September 3, 2010 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save shadowhand/564341 to your computer and use it in GitHub Desktop.
Save shadowhand/564341 to your computer and use it in GitHub Desktop.
location / {
index index.php index.html index.htm;
try_files $uri $uri/ @vanilla;
}
location @vanilla {
rewrite ^(.*) /index.php?p=$1 last;
}
location /index.php {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment