To cut a long story short. I needed to get Roundcube webmail to work over a secure reverse proxy. I wrote a patch because it dosen't work out of the box.
Grab one of the matching patches
Apply the patch
cd project && patch -p0 < file.patch
Paste the following lines into your main config file
// enable requests over a reverse proxy // eg: https://rproxy_host.rproxy_path.$_SERVER['REQUEST_URI'] $rcmail_config['rproxy_host'] = null; // eg. 'ssl-account.com' $rcmail_config['rproxy_path'] = null; // eg. 'app.my-domain.com'
Suggestions are welcome.