How to configure multiple sites and pseudo-static rules when testing AnQiCMS locally in a Windows environment?

Calendar 👁️ 48

As an experienced CMS website operation personnel, I am well aware of the importance of setting up and testing websites in a local environment, which not only helps us quickly iterate content and optimize user experience, but also helps us discover and solve potential problems before release.Especially for users who need to manage multiple sites or pursue the ultimate SEO effect, configuring multiple sites and pseudo-static rules is an indispensable part of local testing.Now, I will combine the features of AnQiCMS with my practical experience in the Windows environment, and give you a detailed explanation of how to configure AnQiCMS's multi-site and pseudo-static rules locally.


AnQiCMS Local Basic Overview

Perform local testing of AnQiCMS under Windows environment, we first need to ensure that the AnQiCMS core program can run normally.AnQiCMS is a lightweight system developed based on the Go language.You only need to download the AnQiCMS installation package for Windows from the official channel, unzip it to any directory on your local machine (such asD:\anqicms-test)

Double-click the run directory after extracting.anqicms.exeAn executable file, the AnQiCMS service will start. By default, AnQiCMS will listen8001Port. The first run may require you to perform initial installation, including setting up database information and admin accounts. After installation is complete, you can access it through a web browser.https://en.anqicms.comCheck out your first AnQiCMS site.

To simulate a real online environment locally and support multi-site management and beautiful pseudo-static URLs, we usually rely on local integrated development environment software, such as the Small Skin panel (phpStudy) or the Windows version of Baota software, which can conveniently provide us with Web server (Nginx or Apache) and hosts file management features.

Configure the local Hosts file to support multiple site domains

When testing multiple sites locally, the web browser needs to know how to access these 'virtual' domain names. Since these domain names do not actually exist on public DNS servers, we need to modify the localhostsFiles, map them to the local loopback address127.0.0.1.

hostsFiles are usually located:C:\Windows\System32\drivers\etc\hosts.

You need to open with administrator privileges

Related articles

How to set up AnQiCMS program on a Linux server to enable boot-up and process protection?

As an experienced website operator who deeply understands the operation of AnQiCMS, I know the importance of a stable and reliable online environment for the content management system.Ensure that the AnQiCMS program can run automatically with the server startup and can recover itself after an unexpected interruption, which is the foundation for ensuring the website remains online and provides high-quality content services.I will explain in detail how to set up the AnQiCMS program to start automatically at boot and process guard on a Linux server.

2025-11-06

What is the detailed configuration example of Nginx reverse proxy when deploying AnQiCMS under the Linux command line environment?

When deploying AnQiCMS in the Linux command-line environment, configuring Nginx as a reverse proxy is a key step in website operation.AnQiCMS as a high-performance, easily scalable Go language content management system usually runs on a non-standard port on the server.

2025-11-06

What is the recommended solution for migrating multi-site data when upgrading from version 2.x to 3.x of AnQiCMS?

Colleagues, as a long-term front-line website operator in AnQiCMS, I am well aware of the importance of the stability and efficiency of the content management system for business development.Recently, many operation partners have been consulting on the recommended scheme for migrating data from AnQiCMS version 2.x to 3.x, especially regarding multi-site data migration.Today, I will combine our practical experience with the latest documentation of AnQiCMS to provide a detailed explanation of this process, ensuring a smooth transition for your multi-site.

2025-11-06

After AnQiCMS backend version upgrade, the front-end page has not been updated. How to force clear the cache or solve the problem?

As an experienced website operator, I know the frustration and confusion you feel when you have diligently completed the AnQiCMS backend version upgrade only to find that the front-end page is still 'as still as a statue'.This is usually not a system failure, but rather due to the multi-layered caching mechanism 'faithfully' preserving the old version of the page content in the background.To solve this problem, we need to delve into it like a detective, layer by layer, investigate and clear away these caches one by one.

2025-11-06

What are the prerequisites and specific steps for installing and testing AnQiCMS on MacOS?

As a website operator deeply familiar with the operation of Anqi CMS, I am well aware of the power of content and how to efficiently deploy and manage a website.AnQiCMS is a modern content management system developed based on the Go programming language, with its efficient, secure, and scalable features, it brings great convenience to content operation.Today, I will elaborate in detail on the prerequisite environment and specific steps required to install and test AnQiCMS on macOS system.###

2025-11-06

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

HelloAs a website operator who is well-versed in the operation of AnQiCMS, I fully understand the importance of displaying complex information such as mathematical formulas and flowcharts in content creation.High-quality, interactive content is the key to attracting and retaining users.I will explain to you in detail how to enable Markdown editor in AnQiCMS and ensure that mathematical formulas and flowcharts can be displayed correctly.

2025-11-06

What types of pseudo-static rules are built into the AnQiCMS system, and how to customize the URL structure?

As a senior CMS website operation personnel of a security company, I know that a friendly and efficient URL structure is crucial for the SEO performance and user experience of a website.AnQi CMS provides high flexibility in the configuration of pseudo-static rules, whether it is for beginners or advanced optimizers, they can find suitable solutions.

2025-11-06

How to configure the AnQiCMS TDK (Title, Description, Keywords) tag feature for page SEO optimization?

AnQiCMS (AnQiCMS) is an enterprise-level content management system developed in Go language, which has fully considered the needs of search engine optimization (SEO) from the beginning of its design.Among them, the fine-grained configuration of TDK (Title, Description, Keywords) tags is a key factor in improving the visibility of the website in search engines and attracting users to click.

2025-11-06