Skip to content

Instantly share code, notes, and snippets.

@roktas
Created August 4, 2010 14:40
Show Gist options
  • Save roktas/508231 to your computer and use it in GitHub Desktop.
Save roktas/508231 to your computer and use it in GitHub Desktop.
index index.html index.htm index.php;
root /srv/www/$host/site;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
include fastcgi_params;
}
location ~ ^/.+ {
try_files $uri $uri/ $uri/index.html $uri/index.php @fall;
}
location @fall {
root /srv/www/$host/site/a;
}
location / {
root /srv/www/$host/site/a;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment