nginx.conf for a restful api
===

I'm currently developing a RESTful api as a bridge between my ios/web application and their shared database, and content.

I found my way to implement RESTful api in PHP on [this blog](http://www.9lessons.info/2012/05/create-restful-services-api-in-php.html).

I started my development on my OVH Apache-based server. Unfortunately, they didn't provide oauth support on web hosting services and no way to install it. OVH tell me i need a dedicated server or a VPS server for this.

Now, i'm going to work on [dotCloud](http://www.dotcloud.com). It's a great alternative I think but their servers (seemingly Amazon EC2's ones), are nginx-based.
It's the first time I use a nginx server and I need your help for "translating" [this .htaccess](http://pastie.org/4348813) to a nginx.conf file.

Before asking your help, I tried to find a nginx.conf file for this but no one worked.
When I pushed them to my dotcloud app, the http service of my app crashed and dotcloud cli said :
>14:55:44 [www.0] WARNING: The service crashed at startup or is listening to the wrong port. It failed to respond on port "http" (80) within 30 seconds. Please check the application logs.

Thanks for any help in advance :)