views:

248

answers:

1

I'm trying to get multiple rails apps hosted under the same domain, but different directories. My configuration before attempting to host multiple apps (which works great), looks like this:

<VirtualHost *:443>
    ServerName secure.mydomain.com 
    DocumentRoot /root/store/public
</VirtualHost>

I google'd around and found documentation suggesting I use the following configuration:

<VirtualHost *:443>
    ServerName secure.mydomain.com
    DocumentRoot /root
    RailsBaseURI /store/public
    RailsBaseURI /store2/public                
</VirtualHost>

That configuration, however, only causes my directory structure to be revealed, and no app appears to run. Any advice would be great!

+1  A: 

Not sure what you found on the Googles, but you might want to re-read the mod_rails docs on Deploying to sub URIs

I'm guessing you'll need to create some symbolic links (aliases) in your /root directory to the public folder of each application

ln -s /store/public /root/store
Scott