serving php from a rails app with passenger

We have a situation where we want one domain which serves a rails app at root and also has a wordpress blog served within the main site.
yours.com/  --> served by rails
yours.com/blog --> served by php
To configure this in apache, The key is the PassengerEnabled – else passenger will try and serve the php content.

2 Responses to “serving php from a rails app with passenger”

  1. John says:

    Hi,

    So how do you do this on a shared hosting site where you have no access to http.conf? I have a Rails (Goldberg) based site at root, and I want to install Menalto Gallery at /gallery. I’ve tried putting “PassengerEnabled off” into .htaccess at /gallery but it doesn’t seem to work.

  2. marcus says:

    I havent done anything with share hosting for a while, but you may have to switch it around so you have rails of an Alias (sub-dir) – but this may not give you the URLs that you are after for your app.
    /gallery/
    /railsapp/

    and a rewrite rule to redirect / to to your railsapp
    RewriteRule ^/$ /railsapp [P,QSA,L]

Leave a Reply