As an experienced CMS website operation person in the security industry, I am well aware of how important it is to manage multiple websites efficiently on a single server.At the initial design of Anqi CMS, the need for multi-site management was fully considered, providing users with a flexible and powerful solution.The following article will elaborate on the**practice** of installing and managing multiple AnQiCMS sites on the same server.
/publicCatalog, especially for direct deployment cases), and proxy all traffic to the port of AnQiCMS.
Configure the reverse proxy, and then you can log in to the backend management interface of the AnQiCMS master instance.In the "Multi-site ManagementHere, you will fill in all the key information for the new website: including the name of the site, the external access website address (i.e., the URL of the new domain), an independent administrator account and password for the new site, and a unique database name.AnQiCMS will create an independent database for each logical site to ensure that the data does not interfere with each other.It is worth noting that if your AnQiCMS is running as a Docker container and the database is configured, you can usually directly reuse the default database connection information, and the system will automatically handle the creation and isolation of the database./app/new_site_domain_com), used to store independent resources such as cache and uploaded files for the site.
To deploy multiple independent AnQiCMS instances, you need to perform a complete AnQiCMS installation process for each site.This means that each site will have an independent AnQiCMS installation package extraction directory.config.jsonFile, set its listening port to an unoccupied, unique port number (such as 8001, 8002, 8003, etc.). At the same time, the startup script for each instance (such asstart.sh
No matter which multi-site deployment solution you choose, there are some common operational considerations.The first is resource management, even though the Go language itself is efficient, managing multiple Go processes or a single process managing multiple sites requires a reasonable assessment of the server's CPU, memory, and disk I/O.The next is domain resolution, all the hosted site domains must be correctly resolved to your server IP address.The configuration of SSL/TLS certificates should also be completed on the external web server to ensure secure access to all sites.Regular and reliable backups are the foundation of data security, whether it is multiple independent databases or a database managed across multiple sites.Finally, continuous server and site monitoring can help you detect and resolve potential performance or security issues in a timely manner.
In summary, the multi-site capability of AnQiCMS brings great convenience to website operators.Through reasonable planning and configuration, whether using the built-in multi-site management feature or deploying multiple independent instances, multiple Safe CMS-driven websites can run efficiently and stably on a single server.
Common Questions and Answers (FAQ)
疑问一:What are the main differences between the built-in multi-site management and running multiple independent AnQiCMS instances in AnQiCMS?
Question two: How to handle database management in a multi-site environment?
config.jsonConfiguration, pointing to its dedicated database.Whether it is in any way, the data isolation of the database is guaranteed.In order to ensure data security, you should formulate a comprehensive database backup strategy to ensure that the databases of all sites are backed up regularly.
Question three: Can I migrate an existing single AnQiCMS site to a multi-site management architecture?
Yes, it is completely feasible.If you have an already running single AnQiCMS site and want to incorporate it into a multi-site management architecture, you can manage other newly created sites as the 'main site'.In some cases, the document also mentions that it is possible to convert AnQiCMS from version 2.x to 3.x and merge it into a Go project for deployment management with other sites.The specific operations may involve: Firstly, ensure that the existing site is running in the recommended deployment method (such as Docker or Go project).Then, use the "Multi-site Management" feature in the AnQiCMS backend to add a new site and configure the reverse proxy for the new site.If it is necessary to convert one of the logical sites from an independent instance mode to an embedded multi-site mode, more detailed configuration adjustments may be required, including ensuring that its database and file paths are compatible with the new multi-site framework, but this is usually considered in the AnQiCMS design.Make sure to take a complete backup of the existing site's data and configuration before making any major changes.