texxasrulez / roundcube-plugin-nextcloud

28 stars 13 forks source link

Different subdomains #10

Closed fabreg closed 4 years ago

fabreg commented 4 years ago

Hello, I'm trying to configure this plugin in this scenario:

sub A - Roundcube: https://mail.xxx.xxx/rc sub B - nextcloud: https://cloud.xxx.xxx

in the url plugin config I setup the url link to the nextcloud as

https://cloud.xxx.xxx

I'm able to see the icon "cloud" into Roundcube but when I try to click on it, I see blank page like the plugin trying to connect to https://cloud.xxx.xxx but it's not able to connect.

texxasrulez commented 4 years ago

It impossible to do that because of cross domain scripting limitations. Depending on your server setup, you can setup domain alias' to make work. The main domain HAS to be the same to work out of the box ...

ie .. https://www.domain.ltd/mail https://www.domain.ltd/cloud

You will need to setup alias to return your URL's in a qualified manner.

Check out Reverse Proxy for more info