When using AnQiCMS to manage multiple websites, you will find that it provides a set of elegant solutions that allow each of your sites to operate independently and easily achieve the integration and sharing of content.This is undoubtedly a great efficiency improvement for operating multiple brands, regional sub-sites, or websites with different content themes.

Independent management: Let each site have a unique operation space

The core of managing multiple sites is to ensure that each website can have its own independent identity and operational strategy.AnQiCMS is well-versed in this, allowing you to configure exclusive settings for each site in a unified backend system, as if you have multiple keys to manage multiple independent doors.

First, each website created through the AnQiCMS multi-site feature can be configured with an independent domain. This means that whether your main site iswww.example.com, the child site isblog.example.com, or completely differentwww.anothersite.comThey can all be properly managed through AnQiCMS.

On the content level, you can customize the content model, categories, and tag systems for each site.For example, an e-commerce site can have a "product" model and a "product category", while another news and information site can focus on the "article" model and "news column".Each site's SEO strategy can also be carried out independently, including the setting of exclusive home page TDK (title, keywords, description), static rules, Sitemap generation, and Robots.txt configuration, ensuring that each site can perform well in search engines.

What is more important, AnQiCMS provides an independent data storage and management mechanism for each site.When creating a new site, you can specify an independent "site root directory" to store the cache and uploaded resources of the site, as well as an independent "database name" to isolate data, thus avoiding data confusion and mutual influence between different sites.Each site can also have an independent administrator account and password, realizing fine-grained control over permissions, further ensuring the security of content and the independence of operation.Even if it is a template, each site can choose to use a different design or customize it based on the same template.

Unified display: Achieving cross-site content integration and sharing.

Although each site operates independently, the strength of AnQiCMS lies in its flexible content calling mechanism, which can easily break through the 'barriers' between sites and achieve unified content display and resource integration across sites.This is particularly crucial for building aggregation websites, corporate portals, or multi-brand matrices.

The unified display capability is mainly due to the centralized template management and highly configurable template tags of AnQiCMS. All template files are stored centrally./templateUnder the directory, it is convenient for you to carry out unified development and maintenance. The most core implementation method is in the omnipresent template tags of AnQiCMS.siteIdParameter.

No matter what you want to call the article list, category information, system configuration, or even contact information, almost all template tags support itsiteIdA parameter. This means that you can be on any page of the main site, simply by specifying the target site'ssiteId, to easily retrieve and display the content of other sub-sites.

For example, you can set up a "Latest News" module on the homepage of the main station, through{% archiveList archives with siteId="2" limit="5" %}This tag can easily call the latest five articles of the child site with ID 2.Similarly, you can also integrate product recommendations from different brand sub-sites on a product display page, or display contact information for all subsidiaries of a corporate website.This flexibility not only greatly reduces the labor of creating duplicate content, but also brings endless possibilities for content operations, allowing you to build a richly functional, diverse website group on a single platform.

Deployment and Configuration: Easily set up a multi-site environment

Deploying the AnQiCMS multi-site environment is actually simpler than you imagine; it does not require you to install a separate program for each website.On the contrary, you only need to install one instance of the AnQiCMS application on a server, and then, through clever configuration, you can manage multiple websites.

The specific deployment process usually includes the following key steps:

  1. Install the AnQiCMS main program:First, deploy an AnQiCMS instance on your server, for example, by installing it through Docker or Baota panel.This instance will run on a specific port (such as the default 8001 port).
  2. Configure reverse proxy:Next, configure the reverse proxy for each domain you want to manage (such as Nginx or Apache)Each domain's reverse proxy will forward requests to the same port that your AnQiCMS instance is running on (for example, port 8001).In this way, users accessing different domain names are actually directed to the same AnQiCMS application.
  3. Add a new site in the AnQiCMS backend:Log in to the admin interface of your AnQiCMS instance and find the "Multi-site Management" feature.Here, you can add new sites one by one. When adding a new site, you need to fill in:
    • Site name: Used for background identification.
    • website address: The domain name corresponding to the site.
    • Administrator account passwordSet independent backend login credentials for the new site.
    • Site root directorySpecify an independent directory, AnQiCMS will store the cache files and other runtime data of the site in this directory, for example, in a Docker environment, this is usually/app/域名下划线The form ensures the physical isolation of data.
    • Database name: Assign a separate database for the new site to ensure complete data isolation. You can choose to reuse the default database account information as long as you have sufficient permissions.
    • Select the template to use: Select a default template for the new site.

In this way, you can easily create and maintain multiple independent and interconnected websites under a single AnQiCMS program, greatly enhancing management efficiency and content utilization.


Frequently Asked Questions (FAQ)

Q1: Do I need to install a separate AnQiCMS program for each site?