As an experienced website operations expert, I know that efficiently managing multiple websites is crucial for corporate brand building and content marketing in the increasingly complex online environment.AnQiCMS, with its excellent performance and rich features, has become the ideal choice for many small and medium-sized enterprises and content operation teams.Today, let's delve into how Anqi CMS can help you easily create and manage multiple independent websites.
AnQiCMS multi-site management: The core capability to build an efficient content matrix
One of the core advantages of AnQi CMS is its flexible and powerful multi-site management function.It is not just a content publishing tool, but also a comprehensive solution aimed at solving pain points of unified management of content across multiple brands, business lines, or regions.Imagine that you don't need to deploy a separate CMS for each new brand or sub-business, but can easily manage all content sites under a unified backend interface, which will undoubtedly greatly improve operational efficiency and reduce management costs.
This multi-site support for users is self-evident: whether you have multiple independent brand websites, need to create independent sub-sites for different product lines, or want to set up temporary pages for specific marketing activities, Anqi CMS can provide support.It allows you to manage these content sites uniformly within the same system, achieving optimized resource configuration and centralized content scheduling, thereby avoiding redundant work and promoting data sharing and resource integration across sites.
This is why AnQi CMS can achieve this, thanks to its exquisite architectural design.It allows a single AnQi CMS application instance to run in the background and direct different domain names to this single AnQi CMS instance via the server's reverse proxy (such as Nginx, Apache).Once the request reaches, Anqi CMS will identify the corresponding independent site configuration according to the visited domain and provide the corresponding content and management interface.This means you do not need to copy a complete security CMS code for each site, but instead expand infinite possibilities on a core system.
The practice of creating and managing multiple independent websites
Now, let's step by step reveal how to create and manage these independent websites in Anqi CMS.The entire process can be divided into two major parts: server configuration and CMS backend operation.
Step 1: Set up the AnQi CMS basic environment and configure server reverse proxy
First, you need to install and run an AnQi CMS instance on the server.This is usually done through Docker or direct deployment.For example with Docker, you will deploy as you did with the first website, select a port (default is 8001), start the Aqiy CMS container, and configure a reverse proxy through the server panel (such as Baota panel, 1Panel) to point your main domain to127.0.0.1:8001.
Next, to add a new independent website, it is crucial to prepare an independent domain for each new website and configure the corresponding reverse proxy.In your server panel (for example, Baota panel), you need to add a website for each new domain and configure it as a reverse proxy.This is the target address of the reverse proxy, which is still the internal address and port where you run the AnQi CMS instance, for examplehttp://127.0.0.1:8001. The reverse proxy of the server will become a "traffic hub" for different domain traffic to converge to the same Anqi CMS application.
An example of a Nginx reverse proxy configuration that redirects all incoming requests to the AnQiCMS instance running on port 8001:anqicms.comornewsite.comthe requests to the AnQiCMS instance running on port 8001:
server {
listen 80;
server_name anqicms.com newsite.com; # 添加所有需要由AnQiCMS管理的域名
location @AnqiCMS {
proxy_pass http://127.0.0.1:8001;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
error_page 404 =200 @AnqiCMS;
location / {
try_files $uri $uri/index.html @AnqiCMS;
}
}
Please note, the above configuration includesserver_nameThe field will contain all the domains you wish to be managed by this AnQi CMS instance.
Step 2: Create and configure a new site in the AnQi CMS backend
After the server-side configuration is complete, you need to log in to your AnQi CMS backend management interface and use the "Multi-site Management" feature to create and configure new independent sites.
- Access Multi-Site Management:Log in to the backend of your first AnQi CMS website, usually you can find the 'Multi-Site Management' or similar feature entry in the left menu.
- Add a new site:Click the 'Add new site' button, the system will pop up a form requiring you to fill in all the detailed information of the new website.
- Site Name:Choose a recognizable name for your new website, which is usually for easy backend management and differentiation.
- Site root directory:This is a critical setting. To ensure that the data and cache of each website are stored independently, you need to specify an independent root directory for the new site.For example, if you deploy using Docker, it is recommended to use
/app/Start with and combine it with the domain name, such as/app/dev_anqicms_com. If it is not a Docker deployment, it is usually/www/wwwroot/a new directory under. Please make sure that this directory exists on the server and is unique. - Website address:Enter the full access domain name of the new website, for example
http://dev.anqicms.com. This must match the domain name you have configured in the server reverse proxy. - Admin account password:Set an independent backend management account and password for the new site. This means that even with multiple sites, the management permissions of each site are strictly separated.
- Database name:Similarly, each independent site needs an independent database. It is recommended to use a unique name related to the domain name, such as
dev_anqicms_com, where the domain name contains.will be replaced with_. AnQi CMS will create all necessary data tables in this database for the new site. - Database information reuse: If your Aiqi CMS instance has the permission to manage the database (this is usually the case with Docker deployment), you can choose to reuse the default database account information to simplify the configuration.Otherwise, you need to fill in the independent database connection information.
- Select the template to use:You can choose a default template for the new site. Anqi CMS supports independent customization of templates, and even different template types can be chosen according to business needs (adaptive, code adaptation, PC + mobile independent).
- Confirm creation:Fill in and verify all information, then click "OK" to complete the creation of the new site. Anqi CMS will automatically initialize the site data in the new database and complete the necessary configuration.
Your second (or more) independent website has been successfully created.You can directly access the backend of the new website by clicking the "Access Backend" button in the multi-site management list to perform various operations such as content publishing, SEO optimization, template adjustment, etc.
Key considerations for multi-site operation
In the multi-site environment of AnQi CMS, the following points are especially worthy of attention during the operation process:
- Complete data isolation:Each website has its own database and file storage space, which means that the data of one site will not be confused with that of another, ensuring the purity of content and data security.
- A unified entry, independent management:Although all sites run through a single secure CMS application instance, each site has its own independent