Multi domaines et redirection implicite sur le domaine principal

Bonjour,

j’ai deux domaines configurés sur mon serveur yunohost :

aaa.com
et
bbb.org

aaa.com est mon domaine principal, quand je saisis https://aaa.com
je suis redirigé vers https://aaa.com/yunohost/sso/
(cela est normal )
par contre quand je saisis https://bbb.org
mon navigateur reçoit un code http 302 (moved temporaly) ainsi qu’une en tête tel que :

_X-SSO-WAT: You’ve just been SSOed _
Location: https://aaa.com/yunohost/

Je suis donc redirigé vers https://aaa.com/yunohost/sso/ :sob:
Je souhaiterais simplement que mon domaine reste cohérent dans la barre d’url du navigateur avec ma requête initiale dans mon cas
https://bbb.org devrait être redirigé vers https://bbb.org//yunohost/sso/

Avez vous une idée sur le sujet ?

Merci

The core of YunoHost don’t permit that. Can you explain in detail why do you want it?

Hello,

Can you explain in detail why do you want it?

Yes of course, I wish provide for two small groups of people an application set ; each group can access to its application set with its specific domain name.

For example:
The group A use the domain aaa.com and the group B use the domain bbb.org , a person from a group can used his webmail (private or public) with the good domain name.

I don’t know exactly how can I do that, it’s may be possible to install two applications webmail for each domain (but at least one of application webmail must be public)

Thank for your help…

You can either install the webmail app on both domain and the webmail public for the bbb.org , so that the user don’t need to enter SSOwat login.

or

Copy the nginx config profile for webmail to the other domain. That way single app will server both the domain.
eg.
Roundcube is installed on mail.aaa.com , so you can go to /etc/nginx/conf.d/mail.aaa.com.d/ , copy the roundcube.conf and paste it in /etc/nginx/conf.d/mail.bbb.org.d/. This way both mail.aaa.com and mail.bbb.org will server roundcube.This would not work for all apps,but I think it will work for roundcube. I tried it long time back.

In both cases you have to make mail.bbb.org public so the it don’t points to aaa.com/yunohost/sso.

Edit: oups, j’avais pas vu qu’il y avait déjà des réponses /o\

Salut,

malheureusement ce n’est pas supporté actuellement :confused:

J’ai ouvert un ticket à ce sujet : https://dev.yunohost.org/issues/963

Merci