AnQiCMS, this powerful content management system developed based on the Go language, with its efficient and customizable features, has become a powerful assistant for many small and medium-sized enterprises and content operation teams.Among many highlight features, its multi-site management capability stands out especially,巧妙地解决了多品牌、多业务线内容运营的复杂性,让您在单一系统下轻松驾驭多个网站。It cleverly solves the complexity of content operation across multiple brands and business lines, allowing you to easily manage multiple websites under a single system.
As an experienced website operations expert, I am well aware of the challenges of managing multiple websites - repetitive tasks, scattered resources, inconsistent experiences, and so on.The multi-site feature of AnQiCMS is designed to address these pain points, providing a unified, efficient, and flexible solution. It allows you to achieve independent operation and centralized management of each site without deploying multiple separate CMS instances.
Next, we will delve into how to configure and use the multi-site management feature of AnQiCMS, and share some practical operational strategies to help you better utilize its potential.
The core value of AnQiCMS multi-site management
The multi-site management feature of AnQiCMS aims to meet the operation needs of multiple independent sites through a single system.This means that whether you have multiple brand websites, product line sub-sites, or need to distribute multi-language content, you can operate under one backend interface, greatly reducing operation and maintenance costs and workload.
Its core advantages are reflected in:
- Unified management, independent operation:All sites share a single AnQiCMS program instance, but each site has its own domain, content, template, backend login account, and database (or logically isolated data storage).This is like a large group, with headquarters centrally dispatching while each subsidiary operates independently, without interference.
- Resource sharing and efficient deployment:No need to install AnQiCMS separately for each site, greatly simplifying the deployment process.The new site can be launched simply by configuration and can be reused or customized as needed, effectively saving server resources.
- Flexible scalability:Combining the powerful content model and template system of AnQiCMS, each site can display a unique style and function, meeting various personalized needs.
Configure and Use: From Deployment to Launch
Configure the multi-site feature of AnQiCMS, mainly involving server-side reverse proxy settings and AnQiCMS backend management operations. Let's understand it step by step.
1. Server-side reverse proxy configuration: The bridge connecting various sites
The cornerstone of multi-site management is the server-side reverse proxy.AnQiCMS usually runs on a specific port on the server (the default is 8001), and your multiple website domains need to be proxied to redirect access requests to this unique AnQiCMS service.
Taking the popular Baota panel as an example, the configuration process is clear and intuitive:
Firstly, for your new site domain in the Baota panel:Create a new websiteWhen creating, you can choose the 'Pure Static' type and ensure that the domain is correctly resolved to your server's IP address. A key step is to set up this new site'sThe running directory is set to/publicThis is the directory where AnQiCMS static resources are stored, ensuring the normal loading of the front-end pages.
Next, go to the settings interface of this new site, findReverse ProxyOptions. Here, you need to fill in your new site domain name, and point the proxy address to the IP address and port of your AnQiCMS service, for examplehttp://127.0.0.1:8001Here it is worth emphasizing that all multi-site will communicate through the same127.0.0.1:8001port with AnQiCMS service, rather than each site having a separate port.
If you are using Nginx or Apache or other web servers, the principle is also similar: you need to configure a new site for each in the corresponding configuration file.serverblock (Nginx) orVirtualHost(Apache), proxy traffic to the running port of AnQiCMS. For example, for Nginx, you would configureproxy_pass http://127.0.0.1:8001;and set the correspondingtry_filesHandle static files and dynamic requests according to the rules.
After completing the reverse proxy configuration, your web server will be able to correctly forward the user's access requests to the new site to AnQiCMS for processing.
2. AnQiCMS backend adds site: Define your new brand space
After the server-side preparation is complete, we can create a new site in the AnQiCMS backend.
Firstly, please log in toAnQiCMS Main Site (or any site with multi-site management permissions) backendIn the left navigation bar, you will see a name calledMulti-site managementThe entry point of [function name]. Click to enter and select 'Add a new site'.
Next, the system will present a form that requires you to fill in the details of the new site meticulously.
- Site Name:This is the name used for the background management interface recognition, you can name it according to the actual brand or business line, such as 'My Product Station', 'English Official Website', etc.
- Site root directory:This is a crucial setting that determines the storage location of new site independent cache, configuration files, and other data. To ensure data isolation and stable operation,Each site must have an independent, unique root directory. The document recommends starting with
/app/or/www/wwwroot/, and combining it with the domain name, for example/app/dev_anqicms.comThis ensures uniqueness and convenience in identification. This directoryNo need to manually create in advanceAnQiCMS will automatically generate it when creating a site. - Website address:Enter the full access domain name you have configured for the new site, for example
http://dev.anqicms.com. - Administrator account password:Set up a separate backend management account and password for the new site. This means each site can have its own management team, enabling finer-grained permission control.
- Database name:[en] Similarly, for data isolation,An independent database should be configured for each new site. You can enter a new database name, for example,
dev_anqicms_com.If you have database management permissions for AnQiCMS in environments like Docker, you can usually choose 'Reuse default database account information', and AnQiCMS will automatically use the current configuration credentials to create table structures in the new database.If your database is located elsewhere or requires different permissions, you can also fill it in manually. - Select the template you want to use:You can choose an existing template for the new site, or proceed with custom development to make it unique