LUYA CMS Multiple Website Domains and Sub-Domains #2138
Replies: 2 comments 4 replies
-
This one will be the main use-case. Since the docs are missing, I struggled several times handling multiple websites in LUYA – right at the setup:
|
Beta Was this translation helpful? Give feedback.
-
I would also like to point out that changing from https://a.example.com/admin to https://b.example.com/admin (and vice versa) the admin must log in again with credentials. Another problem I have noticed is if a website is not the default website, all menu item are "offline" in the preview and have to be injected, see https://github.com/luyadev/luya-module-cms/blob/8a3472acfc2620374fb8de6aed1f2736926cca2b/src/frontend/controllers/PreviewController.php#L45-L70 e.g.: |
Beta Was this translation helpful? Give feedback.
-
Q:
how can i separate the frontend views in a different domain from the backend, as i need to have one cms backend and many pages with different domains?
A:
Hi, in order to find a solution for that questions i think you need to make your example more explicit.
backend
i assume you mean the admin interface?There is currently a huge PR pending from (@boehsermoe) regarding "multiple websites support" (which means, multiple domains which point to the same webserver), so if this is what you are looking for, its in the making luyadev/luya-module-cms#274
Q:
1- Do you want to have different pages for different domains? Or are those different domains but the same cms content (like alias domains)?
answer: same cms content (like alias domains).
2- Can you share the same database among those domains?
answer: yes the same database
3- With backend i assume you mean the admin interface?
answer: yes luya admin interface
A:
So you would like to have:
Then you can just use https://luya.io/api/luya-web-Composition#$hostInfoMapping-detail
This would be the behavior for alias domains. But when you like to separate the content from a domain, then you have to wait until the above mentioned PR is merged :slight_smile:
Does this answer your questions? Otherwise you have to explain a little better what you like to do, maybe with concrete domains.
Beta Was this translation helpful? Give feedback.
All reactions