Rails with phusion passenger and wordpress
- by Venu
We had a site developed using on ruby on rails. It had
Website
Web services for mobile app
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?