Forum: NGINX URL Rewrite issue

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
51939e06ffa3cb79cb1bc30b40dbff58?d=identicon&s=25 John paul Narowski (jnarowski)
on 2009-02-18 01:36
I had this structure in Apache, which would still load the recipes.php
file.

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

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;
  }
This topic is locked and can not be replied to.