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 help?

Found plenty of documentation with Apache, but Nginx lacking.

Thanks!

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.

--Z

The link may be helpful. http://www.buzzwordcompliant.net/2011/01/04/how-to-configure-wordpress-and-rails-within-the-same-nginx-virtual-server/