Hello! As an experienced AnQi CMS website operations personnel, I am very happy to be able to elaborate in detail on how to add a new independent site in the AnQi CMS background.The multi-site management feature of Anqi CMS is a major highlight in our daily operations, helping us efficiently manage multiple brands or business branches under a single system, greatly enhancing work efficiency.

Understanding the multi-site capabilities of AnQiCMS

The Anqi CMS was designed from the outset to address the needs of corporate and content operations teams for multi-site management.It allows users to create and independently manage multiple websites within a single AnQiCMS deployment environment, each website can have its own independent domain, content, template, and even database.This architecture not only reduces operating costs, but also facilitates the unified allocation of resources and data sharing, while ensuring the independent operation of each site and SEO optimization.

To successfully add a new independent site, we need to perform necessary environmental configuration on the server side, and then register the site and set its detailed information in the AnQiCMS backend.Here are the specific operation steps.

Preparation: Configure server reverse proxy

Before you can create a new site through the AnQiCMS backend, you first need to prepare domain resolution and reverse proxy for the new site.This means that when the user accesses the new site's domain name, the request needs to be correctly forwarded to the main service port where AnQiCMS is running.

If you use Baota panel and deploy the AnQiCMS in Docker version, this process will be relatively intuitive.You need to add a reverse proxy for your new site domain in the "Website" function of the Baota panel.When configuring reverse proxy, the target URL usually points to the local AnQiCMS running port, for examplehttp://127.0.0.1:8001If your AnQiCMS main service is running on a different port, please be sure to change it to the actual port.This setting ensures that the new domain can communicate with the AnQiCMS service.

For users who do not use Baota panel or Docker, you need to manually configure the reverse proxy rules of the web server (such as Nginx or Apache).This usually involves editing the server's site configuration file, to proxy requests for the new domain to the running port of AnQiCMS.

Add a new site in AnQiCMS backend

After completing the reverse proxy configuration on the server side, we can officially enter the AnQiCMS backend and add a new independent site.

First, you need to log in to the back-end management interface of the AnQiCMS site you have installed by default. Please note that only the default installed site has the permission for 'multi-site management.'

In the left navigation menu of the background interface, find and click the "Multi-site Management" feature.After entering this page, you will see a "Add New Site" button, click it to open the creation form for a new site.

In the pop-up "Add New Site" interface, you need to fill in the following information in detail:

First, specify a site for your new site.Site name. This name is used to distinguish different sites in the background management list, and you can name it according to the brand or business nature of the new site.

Next isSite root directoryThe setting. This directory is used to independently store the cache, static files, and other data of the new site.If you are deploying AnQiCMS in a Docker environment, this directory is usually named/app/Start, and it is recommended to use a domain name without dots and replaced with underscores as the directory name, for example/app/dev_anqicms_comEnsure that this directory name is unique to avoid confusion with data from other sites.

Then, fill inwebsite address. This is the complete URL of your new site, for examplehttp://dev.anqicms.com. Make sure that the domain name has completed the previous domain name resolution and reverse proxy configuration.

Later, you need to set up a separate set ofAdministrator account password. This will be the credentials you use to log into the new site's backend, and it is recommended to set a strong password for security.

Next isDatabase nameThe settings. To ensure the independence of the new site, it needs to have a completely new database. We usually use a domain name similar to removing the dot and replacing it with an underscore, for exampledev_anqicms_com. This database will independently store all the content, configuration, etc. of the new site.

aboutDuplicate database informationOptions, if you are using Baota panel to install AnQiCMS in Docker environment and already have full management permissions on the database, you can usually choose to “Reuse default database account information”.You do not need to re-enter the username and password for the database.If you wish to deploy the database to another location or use a different database account, you need to uncheck and fill in the new database connection information truthfully.

Finally, you need to set up the new site.Select the template to use. Anqi CMS supports multiple templates, you can choose one from the uploaded templates according to the design requirements of the new site.

After filling in all necessary information, click the "OK" button to complete the creation of the site. The system will automatically complete the creation of the database and registration of the site in the background.

Access and use the new standalone site

Once the new site is added successfully, and the server-side reverse proxy is configured correctly, your new website can be accessed and used directly.

You can navigate directly to the admin interface of the new site by clicking the 'Access Backend' button in the multi-site management list. Or, you can also enter the domain name of the new site in the browser address bar and add it with/system/Path (for example:)http://dev.anqicms.com/system/), log in with the administrator account and password you just set up.

After logging into the backend of the new site, you can manage it like any independent AnQiCMS site, including content publishing, template adjustment, SEO settings, and various operational work.Each site will have its own independent configuration without interfering with each other.

Frequently Asked Questions (FAQ)

1. How can I ensure that the site I just added is truly "independent"?The key to ensuring your new site is independent is to allocate oneindependent database nameandindependent site root directory. When adding a new site in the AnQiCMS background, the system will create a database based on the new database name you provide, and use the specified site root directory to store the unique files of the site (such as cache, uploaded files, etc.), thereby ensuring isolation of data and files.

2. How to configure reverse proxy for a new site without using Panel or Docker?If you have not used Baota panel or Docker, you need to manually configure your web server (such as Nginx or Apache). This usually involves editing the Nginx's.conffile or Apache's.conf/.htaccessFile, add oneserverblock (Nginx) orVirtualHostBlock (Apache), route requests to the new domain throughproxy_passCommand proxy to the port where the AnQiCMS service is running (for examplehttp://127.0.0.1:8001). Also, ensure that the new site'srootThe directory points to the AnQiCMS installation directory underpublicthe folder and configure the corresponding pseudo-static rules.

3. Can I use a different template for the new site than the main site?Yes, absolutely. When adding a new site in the AnQiCMS backend, you can choose any that has been uploaded to/templateTemplates under the directory. Each site can independently select and use different template packages, and can also independently edit and customize their own template files, realizing diverse website styles and functions.