We run roundcubemail and owncloud that have to be accessible independantly. Owncloud is displayed inside roundcubemail via a plug with the url $rcmail_config['owncloud_url'] = 'https://webmail.whitecube.com/owncloud'; - this URL cannot change or the plug-in breaks. Itcan't point to cloud.example.com or it breaks. I have had to set rouncube's webroot to "/var/www/html/" so that the server can access both roundcubemail and owncloud.
<VirtualHost 172.21.11.48:443>
ServerAlias "webmail.example.com"
DocumentRoot "/var/www/html/"
</VirtualHost>
<VirtualHost 172.21.11.48:443>
ServerAlias "cloud.whitecube.com"
DocumentRoot "/var/www/html/owncloud"
</VirtualHost>
The setup works but users have to enter
http://webmail.example.com/rouncubemail, I'd like to make it available on
http://webmail.whitecube.com.
Whats the best way to achieve this?
Can I alias / to /roundcubemail?
Should I rewrite the URL and append roundcubemail?
Or should I redirect?
I have two issues, first what approach to take and secondly the syntax of the commands. I have to make the sites available internally and externally through Nginx and have googled and googled and am no closer to finessing this. Any tips or help most gratefully received.