Hi
Is there a step by step tutorial to create and use reverse proxy?
I would like to learn about reverse proxy but don't know how to start. I searched on the forum and read but still unable to do it.
Thanks

    Ok. The steps I've done:

    1. Create a VPS and install aaPanel.
    2. Login to aaPanel, install Nginx only (no Mysql or PHP)
    3. Add a site (static) domain1.com
    4. Click the website, choose Reserve Proxy > Add Reserve Proxy
    5. Enter the proxy Name, target URL (is a live website I own, ex: www.livedomain.com), host: www.livedomain.com
    6. Visit domain1.com > 502 Bad Gateway

    Please advise
    Thanks

      Hello, 502 is usually caused by the inability to connect to the proxy. It is recommended that you check the error log.

      aaP_merzenaste

      It's the SSL problem. I installed SSL, and it worked; I can open the domain1. It looks like it points to domain2, but when I click links inside the websites, it switches from domain1 to domain2 on the address bar.

      How do you keep the domain1 and completely hide domain2?

      I am running on WordPress

      Thanks

        Hello, the wordpress program will automatically jump to the management link you set in the wordpress background.
        You may need to make changes in the background

        aaP_merzenaste

        7 months later

        aaPanel_Kern

        Hey Kern, Is there any GUI setting to enable auth_basic (basic authentication) for the reverse_proxy created via aaPanel UI? We don't want to have to go muck around with files on the SSH console. Therefore, having a simple way to set the username and password and turn on the BASIC auth for reverse_proxy would be very useful.

        thanks for any tips.

          20 days later

          aaP_merzenaste
          Hi Brother!
          I have set it up as follows:
          Step 1: Server A (192.168.10.145) install aapanel. Create example.com website in server A
          Step 2: Server B (192.168.10.206) install aapanel, too and create an empty site on server B using domain example.com
          Step 3: On server B add a reverse proxy

          • Target URL: http://192.168.10.145 (server A ip)
          • Sent Domain: example.com on server A domain name

            However, when access domain example.com redirect to Unbound domain page on server B (192.168.10.145)


          Why do not show content example.com?

          Please help me. Thank so much!