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.
Domain name and reverse proxy configuration on the server levelFirstly, you need to prepare a separate domain name for your new site (for example
sub.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 example
http://127.0.0.1:8001. 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 http://127.0.0.1:8001; # 请确保这里指向您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'
http://127.0.0.1:8001and 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 well
127.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