Roundcubemail and Owncloud folders live on the document root but because of the limitations of the Roundcube OwnCloud Plug-in I have to organise the vhosts as below. $rcmail_config['owncloud_url'] = 'https://webmail.whitecube.com/owncloud'; - this URL cannot change or the plug-in breaks.
<VirtualHost 172.21.11.48:8080> ServerAlias "webmail.example.com" DocumentRoot "/var/www/html" </VirtualHost> <VirtualHost 172.21.11.48:8080> ServerAlias "cloud.example.com" DocumentRoot "/var/www/html/owncloud" </VirtualHost>
But now requests to webmail.example.com result in the Apache test page in the document root, not the roundcube folder. It seems the most elegant way to fix this is to alias to the roundcube folder rather than trying to redirect or rewrite the url with roundcubemail on the end. I this correct and how do you do it?
Requests to webmail.example.com should be mapped to /var/www/html/roundcubmail. Requests to cloud.example.com should continue to be mapped to "/var/www/html/owncloud". Cloud must be in the webroot of webmail so that its is available to the plugin. I really just want to skip down a level in he directory tree on requests to webail.