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 while also facilitating the integration and sharing of content.This is undoubtedly a great efficiency boost for operating multiple brands, regional sub-sites, or websites with different content themes.

Independent management: Give each site a unique operation space

The core of multi-site management is to ensure that each website can have its independent identity and operational strategy.AnQiCMS deeply understands this, it allows you to configure exclusive settings for each site in a unified backend system, as if you have multiple keys to manage multiple independent doors.

Firstly, each website created through the multi-site function of AnQiCMS can be configured with an independent domain. This means that regardless of your main sitewww.example.com, the child siteblog.example.com, or a completely different onewww.anothersite.comThey can all be properly managed through AnQiCMS.

In terms of content, you can customize content models, categories, and tag systems for each site.For example, an e-commerce site can have a "product" model and "product categoryEach site's SEO strategy can be implemented independently, including the setup of exclusive homepage TDK (title, keywords, description), pseudostatic rules, Sitemap generation, and Robots.txt configuration, ensuring that each site can perform well in search engines.

It is more important that 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 for that 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 its own administrator account and password, realizing fine-grained control over permissions and further ensuring the security and independence of content operation.Even if it is a template, each site can choose to use a different design or personalize modifications based on the same template.

Unified display: Achieve 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 display of content and integrated resource across sites.This is especially critical 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 in/templateIn the directory, convenient for you to carry out unified development and maintenance. And the most core implementation method lies 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 itsiteIdParameters. This means that you can access any page on the main site, simply by specifying the target sitesiteId, to easily retrieve and display content from other child 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" %}Such a tag can easily call the latest five articles of the child site with ID 2.Similarly, you can integrate product recommendations from different brand sub-sites on a product showcase page, or display the contact information of all subsidiaries on a corporate website.This flexibility not only greatly reduces the labor of repeatedly creating content, but also brings endless possibilities for content operation, allowing you to build a rich and diverse group of websites on a single platform.

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

Deploying AnQiCMS multi-site environment is actually simpler than you imagine, it does not require you to install a separate program for each website.In contrast, 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 the web server (such as Nginx or Apache) for each domain you want to manage.Each domain's reverse proxy will forward requests to the same port that your AnQiCMS instance is running on (e.g., 8001).So, users accessing different domain names are actually directed to the same AnQiCMS application.
  3. Add a new site in AnQiCMS backend:Log in to the backend management interface of your AnQiCMS instance and find the "Multi-site Management" feature.Here, you can add new sites one by one.
    • Site Name: Used for background recognition.
    • Website address: The domain name corresponding to this site.
    • Administrator account passwordSet independent backend login credentials for the new site.
    • Site Root Directory指定一个独立的目录,AnQiCMS会在此目录下存储该站点的缓存文件和其他运行时数据,例如在Docker环境下,这通常是English/app/域名下划线The form ensures physical isolation of data.
    • Database nameSpecify a separate database for the new site to ensure complete isolation of site data. You can choose to reuse the default database account information as long as you have sufficient permissions.
    • Select the template to useSelect a default template for the new site.

Through this way, you can easily create and maintain multiple independent and interconnected websites under a set of AnQiCMS programs, greatly enhancing management efficiency and content utilization.


Common Questions (FAQ)

Q1: Do I need to install an independent AnQiCMS program for each site?