As an experienced website operations expert, I am happy to give you a detailed explanation of how to configure a reverse proxy site for the AnQiCMS container deployed in the 1Panel environment, so that your website runs professionally and efficiently.


Configure reverse proxy for AnQiCMS container deployed in 1Panel: Get your website professionally online!

AnQiCMS (AnQiCMS) is an enterprise-level content management system developed based on the Go language, which has become the preferred choice for many small and medium-sized enterprises and content operation teams due to its high efficiency, security, and SEO-friendliness.It is simple to deploy, runs fast, and can meet various content display and management needs.When choosing to deploy AnQiCMS through Docker containers on the powerful 1Panel panel, how to allow users to access it through a familiar domain name rather than a complex IP address with a port number has become a key step before the website goes live.This is the place where reverse proxy is used.

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

Preparation in advance: Make sure your environment is ready

Before starting to configure 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. The AnQiCMS container has been successfully deployed and running:You have followed AnQiCMS's Docker deployment guide, created and started the AnQiCMS container in 1Panel. Remember that the container exposes the following to the outside.Host machine port(Typically 8001, but you may modify it during deployment). 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 AnQiCMS reverse proxy configuration.

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 thecontainerOption, find the AnQiCMS container you deployed. Make sure its status shows thatRunningAnd you have already remembered it, the external mapped host port (for example, the default is 8001). This is the key to ensure that the reverse proxy can correctly connect to AnQiCMS.

2. Log in to 1Panel's website management interface

Next, we need to create an external access entry for this running AnQiCMS container. In the left navigation bar, find and click thewebsiteoption, then select thewebsiteSubmenu. Here you will see a “Create a websiteClick the “button。“

3. Select reverse proxy mode

In the pop-up website creation window, 1Panel provides multiple website creation modes. To forward external domain requests to our Docker container, we need to selectReverse ProxyThis pattern is specifically used to transparently redirect incoming web requests to backend services without exposing the real address and port of the backend service, thereby increasing security and flexibility.

4. Fill in the domain and proxy address

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

  • Primary Domain:Here, you need to enter the domain name you want users to access your AnQiCMS website through, for exampleyour-anqicms.comortest.anqicms.comMake sure that this domain name is correctly resolved (A record or CNAME record) to your server IP address.
  • Proxy Address:Here is the key point! It points to the internal service address that your AnQiCMS container is listening on the host machine.Since Docker containers typically map internal ports to the local address of the host machine, so here fill in127.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 make sure to fill in the correct port number.For example, if your AnQiCMS container is running on the host's port 8002, then enter here127.0.0.1:8002.

Please note that if you plan to deploy multiple AnQiCMS sites on the same server, each site needs to be configured with a separate reverse proxy that points to a different host port mapped to its Docker container.AnQiCMS itself supports multi-site management, through the configuration of different port mappings and reverse proxy, it can realize the powerful function of managing multiple websites with a set of code.

5. Complete the site creation and testing.

After filling in, click theConfirmButton. 1Panel will automatically configure the reverse proxy rules for you at the bottom layer using Nginx (or another web server).Wait a moment, after the website is successfully created, you can open the browser and enter the domain name you just set (such ashttp://test.anqicms.com/) Visit your AnQiCMS website. If everything goes well, you should see the AnQiCMS initial 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/). When you first visit, you may need to perform the website initialization installation, including database configuration and administrator account setup.

Summary

By following these simple steps, you have successfully configured the reverse proxy site for the AnQiCMS container deployed on 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!


Frequently Asked Questions (FAQ)

Q1: Why is my website still inaccessible after configuring a 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