Passenger+nginx: Hosting a Rails application in a subdirectory
Hmmm...all seems to have worked fine for me. Just tried it.
Are you sure you followed the Nginx instructions instead of the Apache instructions?
Make sure you do the soft link and change the 'root' application...the instructions say to make it the absolute path minus the 'public' part:
http { ...
server { listen 80; server_name g.local; root /home/bernie/development/test; <- forgot to change this the first time I tried passenger_enabled on; passenger_base_uri /rails; }...
}
Here's an image of the end result...no route modifications needed:
alt text http://img190.imageshack.us/img190/8898/32380822.png
Here are the Nginx instructions:
http://www.modrails.com/documentation/Users%20guide%20Nginx.html#deploying_rails_to_sub_uri