Hey all,
I'm facing a problem with the deployment of my sites on my server.
What I want is to have a site hosted directly at the root and also at /site2.
Config now looks like this:
- /opt/dn/site1 contains Rails site 1 (so in here there's app, public etc)
- /opt/dn/site2 contains Rails site 2 (so also wtih app/public/...)
- /opt/dn/www contains 2 symlinks to public folders of site1 and site2
Apache configuration looks like this:
<VirtualHost *:80>
# ServerName www.address.be
DocumentRoot /opt/dn/www
RailsBaseURI /site1
RailsBaseURI /site2
</VirtualHost>
environment.rb from site1 contains nothing special, with site2 i've added this line:
config.action_controller.relative_url_root="/site2"
I can succesfully access 'address'/site2 but when I go to 'address' I see the directory listing of /opt/dn/www (so the 2 symlinks)
Could anyone tell me how I can succesfully do this?
Thanks!