The EuroCMS Domains Module
EuroCMS, out-of-the-box, comes with multi domain support.
This will allow you to add different domain names, to EuroCMS.
The types of domain it can be are:
-
website: When people visit this website, the'll see the standard theme.
-
redirect: When people visit this website, they'll be redirected to whatever it was redirect to.
e.g: visiting example.com redirects to example.eu.
- Module: If people visit this website, they'll get a specified module.
For instance, you can add website, named admin.example.eu, and load the admin module, so that you'll always get admin panel.
The module can add support for this, such as the api module. You can add a website named api.example.eu, when visiting you'll get a json output of the features that public domain is allowed to view.
- Alias:
Every settings is loaded exactly as the main domain. Including themes, users, groups, etc...
db structure
| domain_id | user_id | group_id | name | type | user_lock | status | ||||
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 1 | 5 | eurobytes.nl | website | 12,45 | enabled | ||||
| 2 | 1 | 4 | eurobytes.net | redirect | enabled | |||||
| 3 | 1 | 3 | api.eurobytes.nl | module | enabled | |||||
| 4 | 1 | 2 | eurobytes.com | alias | enabled |
Permissions
| name | description | coc? |
|---|---|---|
| domains_add | The ability to add domains | |
| domains_delete | The ability to delete domains | |
| domains_modify | The ability to modify domains | |