How does AnQiCMS achieve independent display of multi-site content under different domain names?

Calendar 👁️ 64

When using AnQiCMS to build and manage websites, users often face the need to create independent sites for different brands, businesses, or regions, and they also hope that these sites can be displayed independently under their respective domain names.AnQiCMS's powerful multi-site management function is designed to address this pain point.It allows users toA set of AnQiCMS core programBased on this, easily create and operate multiple content-independent, domain-independent websites.

The core concept of AnQiCMS multi-site management

AnQiCMS's multi-site management is not simply a copy of multiple program codes, but is based on its efficient Go language architecture and modular design, achievingUnified management and resource sharingThis means that the user only needs to maintain an AnQiCMS instance to manage all affiliated independent sites as if they were managing a folder.This design brings significant advantages: it reduces operational costs, simplifies the upgrade and maintenance process, and ensures the independence and security of data at each site.

The system uses clever configuration to direct requests from different domain names to the same AnQiCMS core service, and then AnQiCMS intelligently distributes content to the corresponding independent sites according to the requested domain.

Implement independent display: Key steps analysis

To make the multi-site content of AnQiCMS independently displayable under different domain names, it mainly involves the following core steps:

1. Deploy AnQiCMS Core Service

First, deploy the main program of AnQiCMS on the server. Normally, this only requiresAn AnQiCMS application instance. Regardless of whether you are using the Baota panel, 1Panel's Docker deployment method, or running directly in the command line environment, AnQiCMS will provide services on a fixed port, such as the default one.8001Port. This port is the shared 'entry' for all sub-sites, and subsequent requests for different domain names will go through this port first.

2. Configure web server reverse proxy

This is a critical step to achieve independent display of different domain names. Since the AnQiCMS core service only listens to one internal port (such as 8001), and we hope that users can access through different domains (such aswww.siteA.comandwww.siteB.comAccessing different sites requires a web server (such as Nginx or Apache) to act as an intermediary to handle external requests.

You need to configure reverse proxy for each independent site on the web server:

  • Create a site for each new domain:In your Web server management interface (such as Baota panel, 1Panel), add forwww.siteA.com/www.siteB.comdomain names for each new site.
  • Set up reverse proxy rules:Forward the requests corresponding to these domain names to the internal address and port of the AnQiCMS core service, for examplehttps://en.anqicms.com. The web server will receivewww.siteA.comThe request is then forwarded to the AnQiCMS service8001on the port.

With such configuration, the web server can accurately route requests to the same backend service of AnQiCMS according to the domain name accessed by the user.

3. Create a new site in the AnQiCMS backend

After completing the reverse proxy configuration, the next step is to create these independent sites in the AnQiCMS backend management system:

  • Log in to the main site background:Access the backend administration interface of your AnQiCMS main site (the one initially installed).
  • Enter multi-site management:Find the "Multi-site Management" feature in the left menu of the backend.
  • Add a new site:In the interface for adding new sites, you need to fill in the following key information:
    • Site Name:Used for background identification, convenient for management.
    • Site root directory:This is a very important setting, used to store the independent cache, uploaded files, and other data of the site. Even though the AnQiCMS program code is only deployed once, each site has its ownThe data directory must also be independent and uniqueFor example/app/siteA_com. The system will isolate the data of different sites based on this directory
    • Website address:Enter the independent domain name corresponding to the site, such ashttp://www.siteA.com. AnQiCMS will identify the request based on this domain and display the content of the corresponding site.
    • Admin account password:Set up an independent backend management account and password for this new site.
    • Database name:Similarly, it is recommended to use an independent database name for each separate site, for examplesiteA_com_dbTo ensure data isolation. If your database permissions allow, you can usually choose to 're-use the default database account information' to simplify the configuration.
    • Select the template to use:Select a dedicated template for this site.

After completing these settings, click confirm, the new independent site will be successfully created and can be accessed through its exclusive domain.

4. Independence of content and template

AnQiCMS provides highly independent content and template management for each site in multi-site mode:

  • Content independent:Each site created in the background has all content data such as articles, products, pages, categories, tags, etc., completely independent.The editing of one site does not affect another, ensuring the personalization and focus of the content.
  • Template independence:Each site can choose and enable its own template. You can/templatecreate multiple different template packages underdefault/siteA_theme/siteB_theme),and specify the corresponding template for each site in the background.This means that each site can have a unique design style and user experience without worrying about interference.The AnQiCMS template file conventions (such as/templatethe root directory,config.json/mobile/directories, etc.) also support this flexible customization.

Operation value and advantages

Through AnQiCMS to achieve the independent display of multi-site content under different domain names, bringing multifaceted value to operators:

  • Centralized management, decentralized display:Only one backend is needed to manage all websites, but each website appears completely independent on the front end, improving management efficiency.
  • Resource efficient utilization:Avoided the repeated installation and maintenance of multiple AnQiCMS programs, saving server resources and labor costs.
  • SEO Optimization:Each site can be configured with independent SEO titles, keywords, descriptions, and use tools such as pseudo-static rules, 301 redirects, etc. for personalized optimization, better serving the target audience under different domain names.
  • Data isolation and security:An independent data directory and database ensures isolation between site data, enhancing data security.
  • Flexible scalability: With the development of business, new sites can be created at any time to meet the needs of multi-brand, multi-language, and multi-business line development.

AnQiCMS through a simple and efficient architecture truly allows users to easily manage the complexity of multi-site operations, and to focus more on content creation and business growth.


Frequently Asked Questions (FAQ)

  1. Can an AnQiCMS server handle a large number of independent sites with different domain names?AnQiCMS is developed based on Go language, with the architectural advantages of high concurrency and high performance.Under reasonable server resource allocation, an AnQiCMS instance can stably carry multiple even large independent sites.The multi-site design aims to efficiently utilize resources, through the reverse proxy of the Web server and the domain recognition mechanism of AnQiCMS internally, effectively distribute traffic, and ensure the independent operation and content display of each site.The specific capacity depends on the server hardware, site content complexity, and concurrent access volume, but it is usually more efficient than deploying multiple independent CMS instances.

  2. How are the content and templates of each independent site kept separate?The content of each independent site is created in the AnQiCMS backend, and it will be allocated an independent "site root directory" and "database name".This means that each site's data (such as articles, images, categories, pages, etc.) is stored in its own database table, and uploaded media files are also stored in separate directories, thereby achieving physical data isolation.In terms of templates, AnQiCMS supports specifying different template theme packages for each site, which are usually stored in/templateUnder the directory, and independently referenced by the site, ensuring that each website has a unique appearance and

Related articles

How to set and display the TDK information (title, keywords, description) on the home page of AnQiCMS?

In website operation, TDK (Title, Description, Keywords) information is the foundation of Search Engine Optimization (SEO), especially for the homepage, its importance is self-evident.A clear and accurate homepage TDK can effectively help search engines understand the core content of the website, thereby improving the visibility and attractiveness of the website in search results.How can we conveniently and quickly set up and manage these key information in AnQiCMS and ensure that they are presented correctly to users?### One

2025-11-08

How to retrieve and display the detailed content of the current article in AnQiCMS

In AnQi CMS, to retrieve and display the detailed content of the current article, it mainly revolves around the organization of template files and built-in template tags.Understanding these core mechanisms allows you to flexibly control the presentation of articles on the frontend page. ### Core Concept: The Composition of Article Detail Page In AnQi CMS, the detailed content of each article is usually displayed through a specific template file.This template file will be automatically or manually called by the system according to the content model of the article (such as "Article Model" or "Product Model") and the settings in the background.By default

2025-11-08

How to use AnQiCMS template tags to display article lists on the page?

In AnQiCMS, flexibly displaying article lists on website pages is one of the core needs of website content management.Whether it is to build news dynamics, product display, blog articles, or any other content that needs to be presented in a list, the powerful template tag system of AnQiCMS can help you easily achieve it.This article will provide a detailed introduction on how to use the `archiveList` template tag, combining the various functions of AnQiCMS, to efficiently and beautifully present article lists on your website page.### Understand `archiveList`

2025-11-08

How to obtain the Logo image and Banner group image of a specified article or category in Anqi CMS, and apply them flexibly in templates?

## Play with Visual Content: Flexible Calling and Display of Article and Category Logo Images, as well as Banner Group Images in AnQi CMS When building and operating a website, eye-catching visual content is the key to attracting users and conveying the brand image. AnQi CMS understands this and therefore provides a powerful and flexible image management and calling function in the system design, whether it is the cover Logo of the article, the representative thumbnail of the category, or the Banner group images used to create an atmosphere, they can all be easily realized and applied to the website template

2025-11-08

How to customize AnQiCMS URL static rules to optimize search engine link display?

In today's digital world, a clear, friendly, and easily searchable URL structure is crucial for the visibility of a website.As one of the core functions of a content management system, the custom ability of URL static rules can make your website perform better in search engines.AnQiCMS is a content management system that focuses on SEO optimization and provides very flexible static configuration options, allowing you to easily achieve this goal.### Understanding the Importance of URL Rewrite Static Firstly, let's briefly understand what a pseudo-static URL is

2025-11-08

How to ensure that custom fields of the content model are correctly displayed on the front page in AnQiCMS?

In AnQiCMS, we often encounter situations where we need to display various personalized content.The built-in articles and product models are powerful, but sometimes they still cannot meet specific business needs.At this time, the custom fields in the content model become our helpful assistants, making website content management more flexible.But the custom field is set up, how can we ensure that they are displayed correctly on the website front-end for visitors to see?Today, let's delve deep into this issue. ### Custom Field Creation and Management of Content Model Firstly

2025-11-08

How to configure AnQiCMS to implement multilingual content switching and display?

Today, with the increasing popularity of globalization, multilingual support for websites is no longer an optional feature, but an important cornerstone for enterprises to expand into international markets and serve global users.AnQiCMS (AnQiCMS) is an efficient and customizable enterprise-level content management system that fully considers this requirement and provides a flexible multi-language content switching and display solution.This article will discuss in detail how to configure and manage multilingual content in AnQiCMS, allowing your website to easily face the world.--- ### One

2025-11-08

How to control the special display of articles in different areas of AnQiCMS's 'recommended attributes'?

In AnQiCMS, the 'recommended attribute' is a very practical feature that allows us to fine-tune the marking and classification of the content we publish, thereby achieving characteristic displays in different areas of the website.The core of this feature lies in assigning specific "flags" or "tags" to articles, allowing them to be selectively called in templates, thereby enhancing the visibility of the content and the overall operational efficiency of the website.What is a 'Recommended Attribute'? To put it simply, a 'Recommended Attribute' is some special tags that we can add to an article when we publish or edit it.

2025-11-08