Skip to content

Instantly share code, notes, and snippets.

@shadowhand
Created April 29, 2010 12:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shadowhand/383516 to your computer and use it in GitHub Desktop.
Save shadowhand/383516 to your computer and use it in GitHub Desktop.
location / {
index index.php index.html index.htm;
try_files $uri $uri/ index.php$uri?$args;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /opt/local/share/nginx/html;
}
location ~ ^(.+\.php)(.*)$ {
fastcgi_split_path_info ^(.+\.php)(.*)$;
include fastcgi.conf;
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