Skip to content

Proxy Project

A proxy server that allows you to connect to a remote server or other services on this server. Currently only supports Nginx

The Proxy server does not process user access. It is only responsible for forwarding user requests to the target server and then returning the results to the user.

Proxy Project Overview

alt text

FunctionDescribe
DomainThe domain name bound to the site. Click the site name of the current site to configure and modify the current site.
Proxy Address
Proxy target address for the current site
SSLDisplays the SSL status of the current site, click to bind SSL to the current site
NoteRemarks about the current site
StatsUse Website statistics-v2 to view the current site’s traffic, connections, etc.
WAFSet the WAF configuration of the current site
ModifySet the configuration of the current site
DeleteDelete current site

Domain or Modify

When clicking Domain or Modify, can modify the site configuration, SSL, log, etc.

  • Domain Manager: Add, delete domain/IP alt text

  • URL Proxy: Set domain name forwarding rules for the current site alt text
    1. Add reverse proxy: Add proxy to the entire site / or specify the directory /test/alt text

    2. Modify: Modify proxy directory configuration

      • Reverse proxy: Modify the target address, sending host, timeout, etc. alt text

      • Config: Custom parameters can be set, such as: proxy_set_header Cookie "cookie_name=cookie_value"; alt text

      • Replacement: Replace the content of the site with the specified content, such as 'http://' with 'https://' alt text

      • Cache: Cache is used to accelerate website performance and improve user experience. Please turn it off if it affects website access. alt text

      • Compressed: Use gzip to compress files of specified types to improve website performance and loading speed. If turning on gzip affects normal access to the website, please turn off this function. alt text

      • Black list: Prohibit specified IP or IP range from accessing this proxy directory alt text

      • White list: Only the specified IP or IP segment is allowed to access this proxy directory. alt text
    3. Delete: Delete the agent directory. Deletion is not allowed when there is only one agent directory.


  • Config: Set the global configuration of the current website
    1. Cache: Cache is used to accelerate website performance and improve user experience. Please turn it off if it affects website access. alt text
    2. Compressed: Use gzip to compress files of specified types to improve website performance and loading speed. If turning on gzip affects normal access to the website, please turn off this function. alt text
    3. Black list: Prohibit specified IP or IP range from accessing the current site alt text
    4. White list: Only allow specified IP or IP range to access the current site alt text
    5. Http approve: When accessing some directories, need to enter your account and password before accessing. alt text
    6. Logs: Configure the logs of the current site, support turning off logging, specify the log storage directory, and send logs to the log server alt text
    7. Websocket: Turn on/off the websocket function of the current site alt text

  • Config file:
    1. Main Configuration File: View the configuration of the current site alt text
    2. Customized Configuration Files: Customize server and http configuration files alt text

  • SSL
    1. Curr, other Certs: View, disable, save (enable) the SSL certificate of the current site, or paste the SSL certificate content settings alt text

    2. Business Certificate: aaPanel commercial certificates for cooperation with SSL providers

      If purchased Business Certificate, can check out this tutorial on how to verify it:

      alt text

    3. Let's Encrypt:

      • File verification: Let's Encrypt servers verify domain ownership by accessing this website's files alt text

        1. If an error occurs, please troubleshoot first and then verify. Multiple errors will be limited Let's Encrypt Rate Limits.

        2. If you encounter verification failure, please troubleshoot according to the prompts

          • Maybe the domain name resolution has not taken effect and no resolution has been added.
          • Let's Encrypt cannot access your website. You can check redirection and proxy issues. Try to access and see if the display is normal. Apply again after it is normal.
        3. If file verification is not available, use DNS verification

        4. If restrictions appear, use third-party website SSL

      • DNS verification (Wildcard support): Let's Encrypt server verifies domain name ownership by parsing DNS records. If DNS records are added manually, they will not be automatically renewed. alt text

        1. If the domain name is in CloudFlare, you can use the DNS API, otherwise you can only manually add the TXT record according to the prompts.

        2. Adding a txt record takes a certain amount of time to take effect. During this period, do not close the txt recording window prompted by aapanel

        3. Manually adding a txt record will not automatically renew the Let's Encrypt SSL certificate.

        Click to view How to apply for a pan-domain name certificate

    4. Certificate holder: The SSL certificate that has been set will be saved here alt text


  • Redirect: Set the current site's specified domain name or directory 301/302 jump specified address alt text

  • Hotlink Protection: Only the specified domain name can be used to access the resources of the current site. If it is not the specified domain name, an error will be returned. alt text

  • Response log:
    1. Access log: Access log of current site alt text
    2. Error log: Error log for current site alt text
  • Quickly find websites through Domain or Note

Usage example

  • If own the testproxy.com domain and need it to proxy to port 96 of the same server, where port 96 runs the docker container website. How to set it up?

    1. First make sure the docker container website is running and what port it is using. Mine is running fine and the port is 96. alt text
    2. Add a website to the proxy project with the domain name testproxy.com and proxy the entire website to port 96 of the local port (127.0.0.1:96). alt text
    3. Use the browser test to access testproxy.com, that is, access the 96 port listened by the docker container. alt text

Feedback or Suggestions

If you encounter problems or suggestions during use, please contact us through the following methods:

  • (Please describe in detail or provide screenshots)
  1. Forum: https://www.aapanel.com/forum
  2. Email: [email protected]