Rails + WordPress.org + Nginx = HELP

Running a rails app with Nginx and trying to add wordpress.org in as
either a subdomain or subdirectory with same URL.

Is this possible? Would running Rails and WP on different servers

Found plenty of documentation with Apache, but Nginx lacking.


I did find several ones on the Internet two days ago. Something likes:

location /rails {
passenger_min_instances 2;
passenger_enabled on;
passenger_base_uri /rails_dir;

The example uses Phusion Passenger with NGINX.


The link may be helpful.