Hello!As an experienced AnQi CMS website operation personnel, I am very happy to provide you with a detailed explanation of how to add a new independent site in the AnQi CMS backend.The multi-site management function of Anqi CMS is one of the highlights in our daily operations, which can help us efficiently manage multiple brands or business branches under the same system, greatly enhancing our work efficiency.
Understanding the multi-site capability of AnQiCMS
The Anqi CMS was designed with the needs of enterprises and content operation teams for multi-site management in mind.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 and SEO optimization of each site.
To successfully add a new independent site, we need to perform necessary environment configuration on the server side, and then register the site and set its detailed information in the AnQiCMS backend.The following 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 in the server.This means that when a user accesses the domain name of the new site, the request needs to be correctly forwarded to the main service port where AnQiCMS is running.
If you use Baota panel and deploy AnQiCMS in Docker version, this process will be relatively intuitive.You need to add a "Reverse Proxy" for your new site domain under the "Website" function in the Baota panel.http://127.0.0.1:8001.If your AnQiCMS main service is running on a different port, please make 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 the Tengta 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, proxying requests for the new domain to the running port of AnQiCMS.
Add a new site in AnQiCMS background
Completed the reverse proxy configuration on the server, and then we can enter the AnQiCMS backend to officially add a new independent site.
First, you need to log in to the back-end management interface of the AnQiCMS site that you have installed by default. Please note that only the default installed sites have the permission of 'Multi-site Management'.
Find and click the "Multi-site Management" feature in the left navigation menu of the background interface.After entering this page, you will see a 'Add New Site' button, click it to open the form for creating a new site.
In the pop-up "Add New Site" interface, you need to fill in the following items of information in detail:
First, specify a name for your new site:Site NameThis name is used to distinguish different sites in the background management list, and you can name the new site according to its brand or business nature.
Next isSite Root DirectoryThe setting.This directory is used to independently store new site cache, static files, and other data./app/Start with a name, and it is recommended to use a domain name without periods and replaced with underscores as the directory name, for example/app/dev_anqicms_com. Ensure 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 this domain has completed the previous domain resolution and reverse proxy configuration.
Then, you need to set up a separate set of credentials for the new siteAdministrator account password. This will be your login credentials for the new site's backend, it is recommended to set a strong password to ensure security.
Then isDatabase nameThe settings. To ensure the independence of the new site, it needs to have a brand new database. Typically, we would use a domain name similar to the one that has removed the dots and replaced them with underscores, such asdev_anqicms_comThis database will store all the data of the new site, including content and configuration.
AboutDatabase information reuseOptions, if you are using Baota panel to install AnQiCMS in a Docker environment and already have full management permissions for 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 the box and fill in the new database connection information truthfully.
Finally, you need to set up the new siteSelect the template to use. Auto 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 "Confirm" button to complete the creation of the site. The system will automatically complete the creation of the database and the registration of the site in the background.
Access and use the new independent site
Once the new site is added successfully and the reverse proxy on the server is configured correctly, you can directly access and use your new website.
You can directly jump to the backend management 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/system/Path (for example:)http://dev.anqicms.com/system/), log in using the administrator account and password you just set up.
After logging into the backend of the new site, you can manage the site like any independent AnQiCMS site, performing operations such as content publishing, template adjustments, SEO settings, and more.Each site will have its own independent configuration, without interference.
Common Questions (FAQ)
1. How to ensure that the new site I have added is truly "independent"?Ensure that your new site is independent is key to assigning it aindependent database name for the new siteandA standalone site root directory.When adding a new site in AnQiCMS backend, 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.), thus ensuring isolation of data and files.
2. How to configure reverse proxy for a new site if I do not use Baota panel or Docker?If you have not used Panelta 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 the requests for the new domain throughproxy_passThe directive proxy to the port where AnQiCMS service is running (for example)http://127.0.0.1:8001). At the same time, ensure that the new site'srootThe catalog points to your AnQiCMS installation directory.publicAnd configure the corresponding rewrite rules.
3. Can I use a different template for the new site than the main site?Yes, you can. When adding a new site in the AnQiCMS backend, you can choose any that has been uploaded to/templateThe template under the directory.Each site can independently select and use different template packages, and can also independently edit and customize their respective template files to achieve diverse website styles and functions.