Rails with phusion passenger and wordpress

Posted by Venu on Server Fault See other posts from Server Fault or by Venu
Published on 2012-07-06T14:49:01Z Indexed on 2012/07/06 15:17 UTC
Read the original article Hit count: 300

We had a site developed using on ruby on rails. It had

  1. Website
  2. Web services for mobile app
  3. Admin panel to manage data.

We started using wordpress to manage site content. We have finished development, have to move to production now. This is the current virtual host code for wordpress to work under /wordpress URI.

<Location /wordpress>
     PassengerEnabled off
     <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /wordpress/
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /wordpress/index.php [L]
     </IfModule>
  </Location>

I want to make phusion passenger work for the /admin and /api URIs. And / to go to wordpress.

Can we change the document root based on the URI? or any other better solution?

© Server Fault or respective owner

Related posts about apache2

Related posts about ruby-on-rails