As an experienced CMS operation personnel for a cybersecurity company, I fully understand your needs regarding website deployment and domain binding.AnQi CMS, with its efficient and flexible features, can greatly simplify operations and maintenance through Docker deployment.Now, let's delve into how to configure reverse proxy to bind your domain through Baota Panel (aaPanel) after deploying an enterprise CMS with Docker, ensuring your website can go live smoothly and run stably.

How to configure reverse proxy through Baota panel after deploying AnQiCMS with Docker to bind my domain?

In the digital age, binding your content management system with a custom domain is a key step in building a brand image and enhancing user experience.When your AnQiCMS (AnQiCMS) has been deployed on the server through Docker containers, the next step is to take advantage of the powerful reverse proxy function of Baota Panel (aaPanel) to correctly guide external domain requests to the running AnQiCMS service.

Preparation: Ensure that the AnQiCMS Docker container is running normally

Before starting to configure the reverse proxy, please ensure that Baota Panel is already installed on the server and the AnQiCMS Docker container has been successfully started.In most cases, you can check the container status through the Docker management interface of Baota panel or directly in the terminal.8001Port. If you change this port during installation, please remember the custom port number you have set, as it is crucial for the subsequent reverse proxy configuration.

Understand the role of reverse proxy.

Configure reverse proxy for a single AnQiCMS site

If you plan to run an AnQiCMS site on the server and bind it to your domain, here are the detailed configuration steps on Baota Panel:

Firstly, log in to your Baota panel. Find and click on the "" in the left menu bar.Website" option. In the website management interface, you will see a "reverse proxyLabel, click it, then select "Add Reverse Proxy" button.

In the pop-up "Add Reverse Proxy" configuration window, you need to fill in the following key information:

  • DomainEnter the full domain name you wish to bind, for examplewww.yourdomain.comMake sure that the domain name has been correctly resolved to your server IP address.
  • Target URLThis is the address pointing to the internal service of your AnQiCMS Docker container. By default, the AnQiCMS container runs on127.0.0.1:8001. Therefore, you should fill inhttp://127.0.0.1:8001If you previously configured a different port for the AnQiCMS Docker container, please set it to the actual port number you are using.8001Replace it with the actual port number you are using.

After filling in, click the “submitButton, complete the creation of the reverse proxy site. The Baota panel will automatically generate and configure the reverse proxy rules for Nginx (or Apache, depending on your environment).

Configure reverse proxy for multiple AnQiCMS sites

One of the major advantages of AnQiCMS is that it supports multi-site management, which means you canThe same AnQiCMS Docker containerRun multiple independent websites and bind different domain names to them. This method greatly saves server resources. The following additional configuration is required to achieve this goal:

Firstly, in the Baota panel's "Website" management interface, click "Add Site". Choose to create apure staticorPHP Project(Choose the PHP version as static only), and enter your new domain name (such asdev.anqicms.comIn the creation process, it is not necessary to create FTP and databases. After the site creation is complete,Please copy the root directory path generated by the sitewhich will be used in the subsequent steps.

Then, configure reverse proxy for this newly created site. Go to the new site's "Set" interface, switch to the "reverse proxy" tab, click "Add Reverse ProxyAs with configuring a single site, enter the "Target URL" as usual.http://127.0.0.1:8001(or the actual port of your AnQiCMS Docker container).

After configuring reverse proxy for a new site on the Baota panel, you still need to go back to the new site's "Set" interface, click "Website Directory" tab. Set "Execution DirectoryModify itpublicand click theSave.

Now, the most important step is toAnQiCMS background management systemAdd this new site. Access the backend through the domain of your first (default) AnQiCMS site, find the "" function in the left menu.Multi-site managementThen click the "Add a new siteIn the pop-up interface, you need to fill in detailed site information:.

  • Site Name: Give your new site a name that is easy to recognize.
  • Site Root DirectoryThis item is very critical. Since AnQiCMS runs in Docker, all site cache and other data need to be stored independently. Please,/app/Start, then name it according to your new domain name, replacing the periods (.) with underscores (_). For example, if your new domain name isdev.anqicms.com, then the root directory of the site can be set to/app/dev_anqicms_comEnsure that this directory name is unique across all sites.
  • Website address: Enter the full domain name for your new site, for example.http://dev.anqicms.com.
  • Administrator account passwordSet up a separate admin account and password for the new site.
  • Database name: Similarly, create a unique database name for your new site, for example.dev_anqicms_com.
  • Database information reuseSince you have deployed AnQiCMS using Docker and already have full management permissions for MySQL within Docker, you can usually choose theReuse default database account informationSo there is no need to fill in the username and password of the database repeatedly.
  • Select the template to use: Choose a suitable template according to your needs.

Click "OKButton, complete the creation of the new site. By now, your new site has been successfully bound to the domain through reverse proxy and the multi-site feature of AnQiCMS, and can be accessed normally.

Start using your AnQiCMS website

After completing the above configuration, you can now enter the domain name you have bound (for example)http://www.yourdomain.com/orhttp://dev.anqicms.com/) to access your AnQi CMS website.

When you first visit, if your AnQiCMS has not been initialized, the system will guide you to the installation interface, follow the prompts to complete the database connection and administrator account settings.If you have installed AnQiCMS through the Baota Docker App Store with one-click installation, the website is usually pre-installed and provides default administrator credentials (admin) and password (123456). It is recommended that you change these default credentials immediately after your first login to the backend to ensure website security.

Your AnQiCMS admin panel address is usually: 您的域名/system/For example,http://www.yourdomain.com/system/.

By following these detailed steps, you should be able to successfully bind the AnQiCMS instance deployed by Docker to your domain through Baota Panel's reverse proxy, whether it is a single site or multiple sites, which can run efficiently and safely.


Common Questions (FAQ)

  • Why do I need to bind my domain through a reverse proxy instead of directly pointing the domain to the Docker container port?Directly pointing the domain to the non-standard port (such as 8001) of a Docker container is technically feasible, but it is not **practical**.Reverse proxy allows you to use standard HTTP (80) and HTTPS (443) ports, which is more user-friendly and convenient for integrating SSL certificates.In addition, reverse proxy can centrally handle all incoming traffic, provide additional security layers, load balancing, caching, and hide the real port of backend services, enhancing the robustness and security of the system.

  • Can I run multiple websites with different domain names in an AnQiCMS Docker container?This is one of the core advantages of the AnQiCMS multi-site management feature. You only need to configure a reverse proxy for each domain in the Baota panel and direct them all to the port of the same AnQiCMS Docker container (for examplehttp://127.0.0.1:8001)。Then, in the AnQiCMS backend management system, add and configure these new domain names one by one through the 'Multi-site Management' feature, specify independent site root directories and databases, and AnQiCMS will automatically recognize and manage the content of these different websites.

  • After configuring reverse proxy, my domain name still cannot access the website. How should I troubleshoot?Firstly, please make sure that your domain has been correctly resolved to the server's IP address.Check if ports 80 and 443 have been allowed in the Baota panel.http://127.0.0.1:8001)。Finally, check if the AnQiCMS Docker container is running normally.If the problem still exists, you can check the Nginx/Apache error logs in the Baota panel or the running logs of the AnQiCMS Docker container, as these logs usually provide more specific error information.