As an experienced security CMS website operator, I know the importance of content management systems in multi-site operations.AnQiCMS with its efficient and customizable features, provides us with great convenience in managing multiple brands or content branches.Adding a new site in AnQiCMS is a common operation, which allows us to centralize the management of different sites into a single system.The system will detail the specific requirements for each field when adding a new site in AnQiCMS multi-site management.

When managing multiple sites on the AnQiCMS backend, selecting the "Add New Site" feature will display a series of fields that need to be filled in.These fields are the key configurations to ensure that the new site can run independently and correctly.

FirstlySite nameThis is an identifier used to recognize new sites, usually we fill in according to the actual brand or project name, so that it can be easily distinguished and managed in the background.This name is not visible to frontend users, it is purely for internal management purposes.

Next isSite root directoryconfiguration. Due to the Docker deployment characteristics of AnQiCMS, it is required to use/app/Start by following with the new site's domain name, but replace all points in the domain name with underscores (.) need to be replaced with underscores (_). For example, if the new site's domain name isdev.anqicms.com, then the site root directory should be filled in as/app/dev_anqicms_com.This directory is used for independently storing cache files and other runtime data for new sites, so it is necessary to ensure that its naming is unique to avoid repetition of directory names with existing sites, to prevent data conflicts.

Specify nextwebsite addressThis field requires filling in the complete URL of the new site, for examplehttp://dev.anqicms.com.AnQiCMS will use this address as the basis to construct the front-end access link of the website and load the corresponding resources.Accurately filling in the website address is the basis for ensuring that users can access the new site normally.

For the management of the new site, it is necessary to setAdministrator account password. This is the independent backend login credentials of the new site, it is recommended to set a combination of accounts and passwords with high security to ensure the security of the site's content and configuration.

Regarding database configuration, information needs to be provided.Database name. Similar to the root directory of the site, the database name of a new site usually also adopts the domain name form by replacing the dot(".) such asdev_anqicms_com. This database will be used specifically to store the content of new sites, user data, and other configuration information, to achieve data isolation between sites.

In the process of filling in database information, if AnQiCMS is deployed through Docker, the system will provideDuplicate database informationThe option.Since Docker deployment usually means that the system has full database management permissions, we can choose to "re-use the default database account information", thus avoiding the need to enter the database username and password again, simplifying the configuration process.If you need to store the data of the new site on a separate database server or use different database credentials, you will need to manually fill in the detailed database connection information according to the actual situation.

Finally, it needsSelect the template to use. The new site can inherit the existing templates of the system or specify a customized template for the site. This will determine the visual style and layout structure of the new site's frontend.

By carefully configuring the above fields, we can successfully add a new site with complete functionality and independent operation in the AnQiCMS multi-site management, providing more possibilities for our content operation.


Frequently Asked Questions (FAQ)

Q1: How to ensure that multiple AnQiCMS sites run independently on a single server without port conflicts?A1: AnQiCMS is deployed in the Docker environment, and each instance will occupy a port.You need to assign a different internal port for each AnQiCMS container (for example, the default is 8001, you can specify 8002, 8003, etc.).Then, in the reverse proxy of your server (such as Nginx or Apache), configure different external access ports for each domain or use domain names to differentiate, and forward the requests to the corresponding internal ports of the AnQiCMS container.When adding a new site in the AnQiCMS multi-site management, although you can share the same AnQiCMS program, each "logical" site requires an independent site root directory and database name. The reverse proxy will route requests with specific domain names to the main AnQiCMS instance, and AnQiCMS will then determine which site based on the domain name.

Q2: What will happen if the database name already exists or the database account password is incorrect when adding a new site?

Q3: How is the template used for the new site determined? If I want to use a completely different appearance for different sites, how should I operate?A3: When adding a new site, there is a "Select the template to use" field, from which you can choose from the templates uploaded and configured in the system.Each new site can independently choose its own template./templateIn the directory, and add the correct for each templateconfig.jsonconfiguration file. This way, when adding a new site, you can select the corresponding template from the list and give each site a unique appearance.