URL Rewrite issue

I had this structure in Apache, which would still load the recipes.php
file.

http://www.amishrecipes.net/recipes.php/18/Amish-Friendship-Bread/

In Nginx I have it proxing to fastcgi, but I dont know how to get it to
operate the way apache did. Any help would be much appreciated.

Here is an excerpt from my config file:

location ~ .php$ {
root /var/www/rails/site.com/public;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME
/var/www/rails/site.com/public$fastcgi_script_name;
include fastcgi_params;
}