URL Rewrite issue


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


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_index index.php;
fastcgi_param SCRIPT_FILENAME
include fastcgi_params;