2023/11/29 13:29:43
|
---|
|
embryonal multi-site supportI am currently hosting several basic sites that are more or less using the same ImpressCMS setup when it comes to modules. Core versions are not so frequent, but I'm using specific flavors of the content module for example where I do regular changes, and it's a chore to update all the sites, without forgetting one here and there. so I was thinking why not have one build that is common for all the sites, and just make the configuration different depending on the domain name that is used to reach the server? I could see some clashes with the cache that might need to be resolved, certainly if multiple sites use the same theme, off the top of my head, but I'm fairly confident that could be fixed quickly by adding the reference to the site domain. I'll experiment and keep this thread updated. |
_________________
|
2023/12/2 7:43:16
|
---|
|
Re: embryonal multi-site supportKeep us posted - this has been a topic that has had quite a bit of discussion and some development. I remember more things, but not sure where those discussions or development are/were |
2024/11/25 7:27:01
|
---|
|
Re: embryonal multi-site supportMy first approach will be very basic : one unified installation, with different configuration and database, based on domain name. Once this is working, I can contemplate more complex use-cases with module overrides and an overarching admin page to manage multiple domains. The changeThat one is quite easy to get working : I define separate instances of mainfile.php, with the domain name embedded, such as mainfile_www.domain1.com.php and mainfile_domain2.org.php. Each of those files contains a complete configuration of an ImpressCMS site. I then replace the content of mainfile.php to include the mainfile based on the server host. This must be hardened and improved, but works well for an alpha version :
I was able to have 2 domains point to the same hosting instance, and this works great. The same ImpressCMS filebase, pointing to a different configuration file and database, based on the domain you use. There is only one fairly important part that's not working : I can't login with the domain I added. Probably a minor detail somewhere, so I'll figure it out soonish. ImprovementsAt the moment there is no distinction between the different sites when it comes to storage of images, uploads and cache data. That needs to be improved as well before this can be considered beta. But all in all, with a single small change, I'm impressed that I got this far already. |
_________________
|