Multiple user portal domains
-
I use multiple domains from the same Cloudron instance. That means different user bases share the same instance, unknowingly of each other. However they still need to use the contextually unrelated
my.myownunrelateddomain.tld
for logins.Can I serve the user portal from multiple domains instead of having to choose one?
-
@yusf I don't think this is possible, but maybe buy a generic domain to use as the portal domain?
Example:
my.parentsite.tld ??
Maybe?
-
@murgero Yeah, that’s what I do now. It’s too confusing. Users of a domain need to stay on that same domain at all times as they won’t understand the context of another one.
-
@yusf Oh!
Maybe add a CNAME
my.domain2.com -> my.portal.tld
The CNAME will redirect to my.portal.tld automatically allowing users to go to my.domain2.com
-
The CNAME trick won't work most likely because nginx (the reverse proxy) also needs to be configured. I think there might also be some other issue because the dashboard uses oauth2 which is tied to a domain. (@nebulon will know about it).
@yusf Will the users just be normal/non-admin users?
-
-
-
@yusf You could use PHP to proxy my.domain2.tld to the main portal and use the header() function to replace the url/domain the client is on internally so the redirection never needs to happen.
-
@yusf said in Multiple user portal domains:
However they still need to use the contextually unrelated my.myownunrelateddomain.tld for logins.
Do they really though?
(I actually assume yes in your case, but just to tease out more info...)
I mean, users could just go to the apps directly and login there, no? i.e. I'm pretty sure my users can login directly at chat.uniteddiversity.coop without having login at my.uniteddiversity.org first.
What's the use case? Is it that you want them to have a dashboard with links to all their various apps? Or is this for users who are able to install more app on their domain etc?