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_iduser_idgroup_idnametypeuser_lockstatus
115eurobytes.nlwebsite12,45enabled
214eurobytes.netredirectenabled
313api.eurobytes.nlmoduleenabled
412eurobytes.comaliasenabled

Permissions

namedescriptioncoc?
domains_addThe ability to add domains
domains_deleteThe ability to delete domains
domains_modifyThe ability to modify domains