AnQiCMS, this is a powerful content management system developed based on the Go language, which has become a powerful assistant for many small and medium-sized enterprises and content operation teams due to its high efficiency and customizable features.Among many highlight features, its multi-site management capability stands out,巧妙地解决ing 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, etc.The multi-site feature of AnQiCMS is exactly designed to solve these pain points, it provides a unified, efficient, and flexible solution that allows you to manage independent operations and centralized management of each site without deploying multiple independent CMS instances.
Next, we will delve into how to configure and use the multi-site management function of AnQiCMS, and share some practical operation strategies to help you better utilize its potential.
The core value of AnQiCMS multi-site management
The multi-site management function of AnQiCMS is designed to meet the operation needs of users for multiple independent sites through a single system.This means that whether you have multiple brand websites, product line sub-sites, or need to distribute multilingual content, you can operate under a single backend interface, which greatly reduces operation and maintenance costs and work load.
Its core advantages are reflected in:
- Unified management, independent operation:All sites share a single AnQiCMS program instance, but each site has an independent domain, content, template, backend login account, and database (or logically isolated data storage).This is like a large group, with headquarters unified dispatching, while the subsidiaries operate independently, without interfering with each other.
- 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:Combine the powerful content model and template system of AnQiCMS, each site can display unique style and function, meet various personalized needs.
Configure and Use: From Deployment to Launch
Configure AnQiCMS multi-site functionality, 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 foundation of multi-site management is the reverse proxy on the server side. AnQiCMS usually runs on a specific port on the server (the default is 8001), and your multiple website domains need to be accessed through reverse proxy to forward access requests to this unique AnQiCMS service.
Taking the popular Baota panel as an example, the configuration process is clear and intuitive:
First, for your new site domain in the Baota panelCreate a new websiteAt the time of creation, you can choose the "static" type and make sure that the domain is correctly resolved to your server 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 and findReverse ProxyOptions. Here, you need to enter your new site domain and direct the proxy address to the address and port of your AnQiCMS service, for examplehttp://127.0.0.1:8001. It is worth emphasizing that all multi-site will go through the same127.0.0.1:8001port to communicate 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 fileserverblock (Nginx) orVirtualHost(Apache), proxy traffic to the AnQiCMS running port. For example, for Nginx, you will configureproxy_pass http://127.0.0.1:8001;and set the correspondingtry_filesRules to handle static files and dynamic requests.
After completing the reverse proxy configuration, your web server will be able to correctly forward user access requests to the new site to AnQiCMS for processing.
2. AnQiCMS backend adds a new site: Define your new brand space
After the preparation on the server is ready, we can create a new site on the AnQiCMS backend.
First, please log in toThe backend of the AnQiCMS main site (or any site with multi-site management permissions). In the left navigation bar, you will see a name called“Multi-site management”Access function. Click to enter and select 'Add new site'.
Next, the system will present a form, where you need to fill in the details of the new site carefully:
- Site Name:This is the name used for identifying the background management interface, 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 location of data storage for independent caching, configuration files, and other data on the new site. In order to ensure data isolation and stable operation,Each site must have an independent and 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 facilitates identification. This directoryNo need to manually create it in advanceAnQiCMS will automatically generate it when creating the site. - Website address:Enter the full access domain name you have configured for your new site, for example
http://dev.anqicms.com. - Admin account password:Set up a set of independent backend management accounts and passwords for the new site. This means that each site can have its own management team, achieving more refined permission control.
- Database name:In order to achieve data isolation,Each new site should be configured with an independent database. You can fill in a new database name, such as
dev_anqicms_com. If you have database management permissions for AnQiCMS in environments like Docker, you can usually choose to 'reuse the default database account information', AnQiCMS will automatically use the current database credentials to create the table structure in the new database.If your database is located elsewhere or requires different permissions, you can also fill it in manually. - Select the template to use:You can choose an existing template for the new site or proceed with customization to make it unique