How to install and manage multiple sites on the same server with AnQiCMS?

Calendar 👁️ 91

AnQiCMS: Easily manage multiple sites on the same server and implement your brand matrix management

As an experienced website operations expert, I know that in today's digital age, many enterprises and content creators may have multiple brands, product lines, or regional sites, and how to efficiently and economically manage these content platforms is often a headache.The traditional method may mean deploying a separate system for each site, which consumes a lot of server resources and operational effort.However, AnQiCMS, with its unique architecture and powerful multi-site management features, provides a graceful and efficient solution to this challenge.

Today, let's delve into how AnQiCMS can be installed and managed on the same server to help you easily build and operate your brand content matrix.

The advantages of managing multiple sites with Anqi CMS: Say goodbye to repetitive labor

One of the core strengths of AnQiCMS is its 'multi-site management' capability.This is not just a simple multi-domain resolution, but through a unified system, it realizes the creation of multiple independent sites, content publishing, user management, and even centralized control of SEO strategies.Imagine, your multiple brand websites, sub-sites, or content branches can all be operated under one back-end interface, which will undoubtedly:

  • Improve operational efficiency:Say goodbye to the hassle of frequently switching between different systems, all content and data at a glance, reducing repetitive work.
  • Reduce O&M costs:No need to buy a server independently for each site or deploy a complete CMS. AnQiCMS can support multiple sites, saving hardware and labor investment.
  • Promote resource integration:Convenient for cross-site data sharing, content reuse, or permission allocation, which helps to implement a more macro-level content strategy.
  • Flexible to meet business needs:Whether it is to create a new marketing activity page, build a specific themed sub-site, or expand multilingual content, it can respond quickly.

The reason why AnQi CMS can achieve such efficient multi-site management is that it does not require you to replicate multiple copies of the program code to run.Just the opposite, it is presented to the outside as multiple independent websites based on an AnQiCMS core program, through intelligent configuration and routing mechanisms.This is like an intelligent building with multiple doors, each leading to a different independent space, but all behind a unified security and management system operating efficiently.

Guide to installing and managing multiple sites on the same server

Next, we will elaborate on how to install and manage multiple sites on the same server using this powerful feature of AnQiCMS.Here we take common server management tools such as Baota Panel or 1Panel as examples, which can simplify most environment configurations.

Step 1: Prepare your AnQiCMS main site environment

Before you start configuring multiple sites, you need to ensure that you have successfully deployed an AnQiCMS instance as your main site.Whether deployed through a Docker container or directly installed on a Linux server, this master station will be the core hub for managing all other sites.Generally, AnQiCMS runs by default on8001on the port.

If you are using panels like Baota and others to deploy the main station, you need to configure the reverse proxy for the domain, forwarding external80or443port requests to the AnQiCMS listening port8001Port. Also, make sure that the 'Running Directory' under your main website directory is set correctly./public.

Step 2: Configure the domain and reverse proxy for the new site.

Now, let's add a new site. This process is mainly divided into two parts: the server level and the AnQiCMS background level.

  1. Domain name and reverse proxy configuration on the server levelFirstly, you need to prepare a separate domain name for your new site (for examplesub.yourdomain.com), and make sure that the domain name is correctly resolved to your server IP address.

    Next, create a 'reverse proxy' site for this new domain in your server management panel (such as Baota panel or 1Panel).

    • Baota panel operation:Select [Website], click [Add Site], select "PHP Project" (This is just to take advantage of the Baota website management function, it will not actually run PHP).When creating a site, enter your new domain name, keep the root directory default, choose not to create FTP and database, and select the 'static' PHP version. After the site is created, click the "Settings" button of the new site and select the [Reverse Proxy] option.In the 'target URL', enter the intranet address and port that your AnQiCMS main station is listening on, for examplehttps://en.anqicms.com. Finally, in the "Static" tab, you need to add the Nginx (or Apache) rewrite rules for the new site.Please refer to the following Nginx configuration example:

      location @AnqiCMS {
          proxy_pass https://en.anqicms.com; # 请确保这里指向您AnQiCMS主站的实际端口
          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;
      }
      

      If you are using Apache, enter the target URL in the 'Reverse Proxy'https://en.anqicms.comand leave the 'URL Rewrite' rule blank.

    • 1Panel operation:Click on the left menu item [Website], select [Reverse Proxy], click [Create Website]. Fill in your new domain name in the main domain, and enter the proxy address as well127.0.0.1:8001. No matter which panel you use, the key step is to ensure that the server's web service (Nginx/Apache) can correctly forward requests for the new domain to the running AnQiCMS main program.

The third step: Add a new site in AnQiCMS backend

Now, all traffic is ready to be directed to your AnQiCMS core. Next, we will log in to the AnQiCMS main station's backend to create

Related articles

How to customize navigation categories and link types in AnQiCMS's navigation settings?

## AnQiCMS Navigation Settings: Customize Your Website's Structure and User Experience In today's digital age, a website's navigation system is more than just a tool to guide users through the site; it is the 'skeleton' of the website architecture, directly affecting user experience, information retrieval efficiency, and even search engine optimization (SEO) performance. As an enterprise-level content management system developed based on the Go programming language, AnQiCMS understands the importance of the navigation system and therefore provides a highly flexible and easy-to-customize navigation setting function, aimed at helping businesses and content operators easily build a clear

2025-11-07

How to configure the website name, address, logo, etc. in AnQiCMS's 'Global Settings'?

As an experienced website operations expert, I am well aware of the importance of a website's basic configuration, especially for a powerful and SEO-focused enterprise-level content management system like AnQiCMS (AnQiCMS), whose 'global settings' are self-evident.It is not just about filling in a few items of information, but also about laying the foundation for your website's brand image, ensuring smooth operation, and future expansion.Today, let's delve into how to elegantly and efficiently configure your website name, address, logo, and other core information in the 'Global Settings' of AnQiCMS.

2025-11-07

How to enable Markdown editor and display mathematical formulas and flowcharts in AnQiCMS?

As an experienced website operations expert, I know that content quality is the core of attracting and retaining users.In AnQiCMS such an efficient and flexible content management system, making full use of its various functions to enrich content expression is crucial for enhancing the professionalism and user experience of the website.Today, let's delve into a very practical advanced topic: how to enable the Markdown editor in AnQiCMS and make your mathematical formulas and flow charts beautifully displayed on the web.AnQiCMS as a corporate-level content management system based on the Go language

2025-11-07

How to add custom parameters to the contact information settings in AnQiCMS?

In the digital age, an efficient and professional website is a key bridge for communication between enterprises and users.AnQiCMS (AnQiCMS) as an enterprise-level content management system based on the Go language, deeply understands this, and not only provides powerful content management capabilities, but also considers the operator in detail.Today, let's delve into a seemingly simple yet extremely practical feature: how to add custom parameters in the contact information settings of AnQiCMS to make your website information display more flexible and meet your business needs.### Flexible Configuration

2025-11-07

How to deploy AnQiCMS Docker installation tutorial through 1Panel/aaPanel/Baota panel?

As an experienced website operations expert, I fully understand the importance of an efficient, secure, and easy-to-manage content system for a company.AnQiCMS (AnQiCMS) boasts a high-performance architecture based on the Go language, providing an excellent content management experience while also winning the favor of many users with its flexible deployment methods.

2025-11-07

How to use `if` and `for` tags for logical judgment and loop traversal in AnQiCMS templates?

As an experienced website operations expert, I am well aware of the importance of a flexible and powerful template system for content management.AnQiCMS leverages its high-performance architecture based on the Go language and support for Django template engine syntax, providing us with great convenience.It is not just a tool for publishing content, but also a powerful tool for us to achieve personalized content display and improve user experience.

2025-11-07

How to format timestamps with the `stampToDate` tag in AnQiCMS template?

As an experienced website operations expert, I know that in daily content management, timestamp formatting is a seemingly simple detail that often troubles many operations personnel.In AnQiCMS such an efficient and flexible content management system, mastering the use of template tags can greatly enhance the professionalism and user experience of content presentation.Today, let's delve into a very practical and key tag in the AnQiCMS template - `stampToDate`, and see how it helps us easily format timestamps.

2025-11-07

How to call the detailed information of a specific page in Anqi CMS template?

AnQi CMS, as an efficient and flexible content management system, has provided strong support for us in the field of content operation.In daily website management, single-page (also known as independent page) plays an indispensable role, whether it is to showcase corporate culture in "About Us", provide a communication bridge in "Contact Us", or introduce various service pages, they are all important windows for users to obtain core information.

2025-11-07