How to deploy multiple AnQiCMS sites on the same server and ensure their independent display?

Calendar 👁️ 83

Deploying multiple websites on the same server while ensuring that they run and display independently is a common need for many content operators.For AnQiCMS users, this is not only feasible but also very efficient.The Anqi CMS, with its powerful multi-site management features, allows you to easily manage multiple brand sites, sub-sites, or content branches with just one core program.

Next, we will discuss in detail how to cleverly deploy and manage multiple secure CMS sites on the same server, so that they operate independently and do not interfere with each other.

Core Concept: A single program, multiple sites

The strength of AnQi CMS lies in its ability to manage multiple independent websites through a set of core programs.This means you do not need to copy the complete code of AnQi CMS for each new site, but instead use the multi-site management feature provided by the main site to create and maintain them.All sites will be served by the same AnQi CMS application instance, but each site has its own independent backend management, database table structure (data isolation), templates, and content.This design greatly simplifies maintenance work and effectively saves server resources.

Preparation

Before starting the deployment, you need to make some preparations:

  1. A server that is installed and running the AnQi CMS:Ensure that the first Aiqi CMS site has been successfully installed on your server and is accessible.This site will serve as the "main site", used to add and manage other child sites.
  2. Multiple independent domain names:Prepare a separate domain for each new site you want to deploy (for examplesite1.com,site2.com), and point them to your server IP address.
  3. Server management tools:If you use Baota panel (or 1Panel, aaPanel, etc.), the operation will be relatively simple.If you are manually configuring Nginx or Apache, you also need to ensure you are familiar with these web server configurations.

Deployment steps in detail

The entire process is divided into two main parts: adding a new site in the Anq CMS backend and configuring the server's reverse proxy.

Step 1: Add a new site in the main Anq CMS backend.

First, you need to log in to the management backend of your first, that is, the main security CMS site.

  1. Enter multi-site management:In the left navigation bar, find and click the "Multi-site Management" feature. Here, the list of all added sites will be displayed.
  2. Add a new site:Click the 'Add new site' button, a configuration interface will pop up, where you need to fill in the details for the new site.
    • Site Name:Choose a name for the new site that is easy to recognize and convenient for you to manage in the background.
    • Site root directory:This is a very critical setting, which defines the path where the independent data of the new site is stored. You need to specify a new site for this.Brand new, not duplicated with other sitesThe directory. For example, if your security CMS main program is deployed in/www/wwwroot/anqicms.com, you can create a new subdirectory under this directory, such as/www/wwwroot/anqicms.com/newsite_data. If you are deploying through Docker, the directory is usually named/app/for example/app/dev_anqicms_com. Ensure that this directory exists in the file system and that the CMS has write permissions.
    • Website address:Enter the complete domain name you have prepared for your new site, for examplehttp://site2.comorhttps://www.site2.comMake sure to check it correctly, this will be the actual address for users to access your new site.
    • Administrator account and password:Set a new site independent account and password. This account will be used to log in to the new site's backend.
    • Database name:Specify one for the new siteBrand new, not duplicated with any other site's databaseFor exampleanqicms_site2. Anqi CMS will create an independent table in this database for the new site to store data, ensuring data isolation.
    • Database information reuse: It is strongly recommended to check the option to reuse the default database account information.Since all sites are served by the same Anqi CMS program, they use the same database connection credentials to access their independent databases.
    • Select the template to use:Select an appropriate template for the new site.
  3. Confirm creation:After filling in, click the "OK" button. Anqi CMS will automatically initialize the site data in the new database and complete the background configuration.

At this point, the data structure and backend management of the new site are ready.But users cannot access it through the domain name because the external domain request has not yet been associated with the running Anqi CMS program.

Step 2: Configure server reverse proxy

This is a critical step to point your new domain to the AnQi CMS program. Whether using Baota panel or manually configuring Nginx/Apache, the core idea is to set up a 'reverse proxy' to forward the access requests from the external domain to the internal port that your AnQi CMS program is listening on (usually8001)

If you use Baota panel or 1Panel:

  1. Create a new website:In the panel, create a new domain (such assite2.comCreate a website. When choosing a website type, you can select 'static' or 'reverse proxy'.
  2. Set the running directory:Enter the settings page of the newly created website, in the "Website Directory" option, set the "Running Directory" to the directory under your main AnQing CMS program directory.publicFolder. For example, if the main security CMS program is in/www/wwwroot/anqicms.com, then the running directory should be set to/www/wwwroot/anqicms.com/public.
  3. Configure reverse proxy:Find the 'Reverse Proxy' feature in the website settings.
    • Proxy name:You can fill it in arbitrarily, convenient for identification.
    • Target URL:Enter the address and port of your main AnQi CMS program. It is usually `http://127.0.0.1:800

Related articles

How to display the current year or other system time information in the template?

In website operation, keeping your content up-to-date in real-time, especially information like the year or date of system time, can not only enhance the professionalism of the website but also provide users with more accurate references.AnQiCMS as a flexible and efficient content management system provides a variety of convenient ways for you to easily implement this requirement. Next, let's learn how to flexibly display the current year or other system time information in the AnQiCMS template.### Display the current system time——`{% now %}`

2025-11-08

How does the automatic compression of images and the handling of large images in content settings affect page display performance?

In website operation, images are indispensable elements that enrich content and attract users.However, if image processing is not handled properly, the large file size often becomes the culprit that slows down page loading speed, thereby affecting user experience and search engine optimization (SEO) performance.AnQiCMS provides a series of powerful image processing features in its content settings, aimed at helping us easily optimize images and significantly improve the display performance of the website.When a visitor opens a page, the browser needs to download all the resources on the page, including text, styles, scripts, and images.If the image file is too large

2025-11-08

How do static rules affect the display form and SEO-friendliness of website URLs?

## Static rule of AnQi CMS: How to create a URL structure that users and search engines both love In the operation of a website, the URL is not only the path for users to access the page, but also an important clue for search engines to understand and evaluate the content of the website.A clear, concise, and meaningful URL that greatly enhances user experience and website SEO performance.AnQi CMS knows this, and therefore provides a flexible and diverse static rule management function to help us easily create an ideal URL structure.What is pseudo-static and why is it so important

2025-11-08

How does Anqi CMS manage and display uploaded images and video resources?

When using Anqi CMS to manage website content, images and video resources are undoubtedly the key to enriching the page and improving the user experience.AnQi CMS provides a set of intuitive and powerful functions to help us efficiently upload, manage, and display these multimedia contents. ### Easy upload and centralized management of resources When creating articles, products, or single-page content, images and videos can be directly inserted into the content editing area.This process is very smooth, just like using a document editor in everyday life.In addition to this immediate insertion method, Anqi CMS also has a dedicated "image resource management" area

2025-11-08

How to add structured data (JSON-LD) in the HTML header to improve search result display?

In today's highly competitive online environment, it is crucial to make your website content stand out in search engine results pages.In addition to high-quality content and an excellent keyword strategy, structured data (especially in JSON-LD format) plays an increasingly important role.It can help search engines understand the information on your page more accurately, so that your content may be displayed in richer, more attractive forms in search results (such as rich media summaries, i.e., Rich Snippets).What is JSON-LD and why should it be used

2025-11-08

How to enable and display captcha in the comment or message form?

In website operation, the message and comment functions are important channels for interacting with users and collecting feedback.However, this is often accompanied by the困扰 of spam and malicious flooding.To effectively filter out this unnecessary content, enabling the captcha mechanism has become a simple and efficient solution.AnQiCMS (AnQiCMS) provides us with a flexible way to easily integrate captcha functionality into comment or message forms. Next, we will learn in detail how to enable and display the captcha in Anqi CMS.### Step 1: Turn on captcha feature in the management background First

2025-11-08

How can language switch links be displayed in multilingual sites?

Build a website for global users, multilingual support is an indispensable part.AnQiCMS was designed with this in mind, providing a powerful and flexible solution for the publication and management of multilingual content.By making some simple configuration and template adjustments, we can easily implement language switching functionality on the website, allowing users of different languages to smoothly browse the website content.### AnQiCMS' multilingual capabilities AnQiCMS is inherently equipped with excellent multilingual content management capabilities

2025-11-08

How to display a user or user group in the template

In AnQi CMS template design, it is crucial to be able to flexibly display user or user group information, which is essential for building personalized, interactive website experiences.AnQi CMS provides intuitive and powerful template tags, allowing you to easily display rich information such as users' profiles and user groups on the front end of the website, thereby enhancing user engagement and the professionalism of the website.Whether you want to display the user's nickname and membership level in the article comment area or show specific content and features based on the user's identity or group, Anqi CMS provides the `userDetail` and

2025-11-08