As an experienced website operation expert, I am more than happy to provide a detailed explanation of how to configure reverse proxy sites for AnQiCMS containers deployed with Docker in the 1Panel environment, so that your website can run professionally and efficiently.


In 1Panel, configure reverse proxy for AnQiCMS container deployed by Docker: Launch your website professionally!

By configuring reverse proxy, we can not only provide AnQiCMS website with a professional and memorable access point, but also easily implement HTTPS encryption, bringing higher security and better search engine rankings to the website, making your content marketing journey smoother.

English preparation: Ensure your environment is ready

Before starting the configuration of the reverse proxy, please confirm that the following points are ready:

  1. 1Panel panel is installed and running normally:This is the foundation of all operations.
  2. The Docker service has been started in 1Panel:Make sure the Docker feature of 1Panel is enabled.
  3. AnQiCMS container has been successfully deployed and is running:You have created and started the AnQiCMS container in 1Panel according to the AnQiCMS Docker deployment guide. Please remember that this container exposes the external port.Host machine port(It is usually 8001, but you may modify it when deploying). This port will be the target of our reverse proxy.

Detailed steps to configure reverse proxy

Now, let's go step by step to complete the reverse proxy configuration of AnQiCMS.

1. Confirm the running status of the AnQiCMS container.

Firstly, we should confirm again that the AnQiCMS container is running normally in 1Panel. Click on thecontainer”Option, find the AnQiCMS container you deployed. Make sure its status shows “RunningAnd you have already remembered the host port it maps to (for example, the default is 8001). This is crucial for the reverse proxy to correctly connect to AnQiCMS.

2. Enter the website management interface of 1Panel

Next, we need to create an external access entry for this running AnQiCMS container. Find and click on the option in the left navigation bar.WebsiteWebsiteSubmenu. Here, you will see a “Create a websiteClick the “button.”

3. Select reverse proxy mode

In the popped-up website creation window, 1Panel provides various website creation modes. In order to forward external domain requests to our Docker container, we need to select “reverse proxyThis pattern.This pattern is specifically used to transparently direct incoming web requests to backend services without directly exposing the real address and port of the backend services, which enhances security and flexibility.

4. Enter the domain and proxy address

This is the core step of reverse proxy configuration, please fill in carefully:

  • Main Domain:Here, you need to fill in the domain name you want users to access your AnQiCMS website through the browser, for exampleyour-anqicms.comortest.anqicms.comPlease make sure that this domain name has been correctly resolved (A record or CNAME record) to your server IP address.
  • Proxy address:This is the key point!It points to the internal service address that AnQiCMS container listens on the host machine.127.0.0.1:端口号Here,端口号It is the host port exposed by your AnQiCMS container (default is 8001).If you use a different port when deploying AnQiCMS, please be sure to fill in the correct port number.127.0.0.1:8002.

Please note that if you plan to deploy multiple AnQiCMS sites on the same server, each site requires a separate reverse proxy to point to a different host port mapped to its Docker container.AnQiCMS itself supports multi-site management, through the configuration of different port mapping and reverse proxy, it can achieve the powerful function of managing multiple websites with a single code.

5. Complete the site creation and perform testing.

After filling in, click the “ConfirmButton.1Panel will automatically configure the reverse proxy rules for Nginx (or other web servers) for you at the bottom layer.http://test.anqicms.com/Come to access your AnQiCMS website. If everything goes well, you should see the AnQiCMS initialization installation interface or the configured website content.

Don't forget, the backend management address of AnQiCMS is usually your domain name plus/system/(For example}]}http://test.anqicms.com/system/). First time visit, you may need to perform the initial installation of the website, including database configuration and administrator account setup.

Summary

Through these simple steps, you have successfully configured a reverse proxy site for the AnQiCMS container deployed by Docker.This not only gives your website a professional and memorable access address, laying a solid foundation for future HTTPS encryption configuration, but also makes website management and maintenance more convenient.Enjoy the efficient content management experience brought by AnQiCMS!


Common Questions (FAQ)

Q1: Why can't I access my website after configuring reverse proxy?

A1:This usually has several reasons. First, please check if your domain has been correctly resolved to the server's public IP address. Second, confirm the firewall settings of 1Panel