The core advantage of AnQiCMS multi-site management

The multi-site management function of AnQiCMS is not simply a copy of multiple programs, but supports multiple independently operated websites through a set of core systems. This architecture brings significant advantages:

first, Unified backend management experience.Whether you manage a few or dozens of sites, all content, users, templates, system settings, etc. can be operated in the same AnQiCMS backend.This means you do not need to frequently switch between background interfaces, which greatly reduces the cost of repetitive labor and training, and improves overall operational efficiency.

secondly,Shared and isolated data and resources.In multi-site mode, each site can have its own independent database and file storage path, ensuring the independence and security of the content.At the same time, AnQiCMS also supports cross-site data calls when needed (such as sharing some common content or product data), or reusing database connection information, taking into account flexibility and resource optimization.

Unified management from deployment to backend settings

To make full use of the multi-site capabilities of AnQiCMS, it is first necessary to understand its deployment logic and background configuration process.

  1. Deployment level: one-time installation, core program reused across multiple sites.AnQiCMS developed in Go language, featuring high performance and lightweight characteristics.When deploying multiple sites on the same server, you do not need to install a set of AnQiCMS program for each site.The core approach is to deploy an AnQiCMS instance and use the reverse proxy feature of a web server (such as Nginx, Apache) to direct different domains to this unique AnQiCMS instance.For example, you can deploy AnQiCMS by using the Docker, Baota panel's Go project feature, or manually through the command line, making it listen on a specific internal port (such as 8001).Continue, configure a separate domain for each site you want to host, and set up reverse proxy rules on the web server to forward the traffic of these domains to the port that AnQiCMS is listening on.siteA.comWhen, the traffic will be routed to AnQiCMS for processing; accesssiteB.comAlso, it will be routed to the same AnQiCMS instance.

  2. Background operation: Create and configure a new siteAfter deployment is complete, log in to the AnQiCMS initial site backend, find the "Multi-site Management" feature in the left navigation bar.Here, you can add a new site.

    • Site name:Used to identify the site during backend management.
    • Site root directory:This option is crucial, as it specifies an independent file storage space for each new site, such as/app/siteA_comThis ensures that caches, uploaded files, and other resources on different sites are isolated from each other and do not interfere.
    • website addressFill in the actual access domain name of the new site. AnQiCMS will identify and load the corresponding site's configuration and content based on this domain name.
    • Database nameIt is recommended to set up an independent database for each new site to achieve complete isolation of content data.Of course, you can reuse the default database connection account information, no need to configure connection credentials separately for each database.
    • Administrator account passwordSet an independent backend login credential for the new site to achieve fine-grained control over backend user permissions.
    • Select the template to useThis is the first step to implement independent display on the front-end, where you can choose a dedicated template theme for your new site.
  3. Unified and flexible at the content levelOn content management, AnQiCMS's 'flexible content model' is the key to unified management.You can customize various content models (such as articles, products, cases, etc.) according to the business needs of different sites and add personalized fields to each model.This means that a site covering product display and a site mainly focusing on news information can have completely different content structures even under the same AnQiCMS instance.Moreover, functions such as "content collection and batch import", "full-site content replacement", and others have greatly improved the efficiency of content operations.

Implement independent frontend display: Fine-grained template control

Unified management is the foundation, and independent frontend display is the core charm of multi-site operation.AnQiCMS provides great flexibility in template design, ensuring that each site can have a unique visual style and interactive experience.

  1. Independent site-level templateWhen creating a new site, AnQiCMS allows you to choose different template themes for each site. Each template theme is stored in/templatethe respective folders under the directory (for example/template/defaultor/template/my_custom_theme),and includes a description of the topic informationconfig.jsonfile. This means thatsiteA.comyou can use a set of simple business templates, whilesiteB.comyou can use a lively blog style template, without affecting each other.

  2. Content type level template independentAnQiCMS's template control granularity is very fine, in addition to the site theme, it can also be customized for template design of different types of content:

    • Content Model TemplateEach content model (such as the "Article" model or the "Product" model) can have its default detail page ("