yours.com/ --> served by rails yours.com/blog --> served by phpTo configure this in apache, The key is the PassengerEnabled – else passenger will try and serve the php content.
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.
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.
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]