I set up TextPattern running on Nginx the other day and had to convert the Apache rewrite rules in the given .htaccess to Nginx. Couldn't find a sample online so thought I post it here:
location / {
root /var/www/where-document-root-is/;
index index.html index.htm index.php;
if (!-e $request_filename) {
rewrite ^(.*) /index.php;
}
}