This topic describes how to configure a Windows Server as a proxy server for the host where a backup client is installed.

Background information

If the host where data is to be backed up cannot access the Internet, you need to configure a proxy server for the host.

Procedure

  1. Prepare a server with Internet access for configuring the proxy service.
  2. Install Visual C++ Redistributable for Visual Studio 2015-2019.
  3. Download the binary package of Apache HTTP Server 2.4 and decompress the package.
  4. Modify the configuration file Apache24\conf\httpd.conf.
    Note In Define SRVROOT "\Apache24", change the path to the installation directory of Apache. When Apache is stored in the root directory of disk D, for example, you can change the path to D:\Apache24.
    • Load modules.
      LoadModule proxy_module modules/mod_proxy.so
      LoadModule proxy_connect_module modules/mod_proxy_connect.so
      LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
      LoadModule proxy_http_module modules/mod_proxy_http.so
    • Specify any port as the listening port, for example, Listen 8888.
    • Set access permissions.
      ProxyRequests On
      ProxyVia On
      <Proxy *>
      Require all granted
      </Proxy>
  5. Double-click Apache24\bin\httpd.exe to start the proxy service.
  6. Install the backup client on the host without Internet access in either of the following two ways. After the backup client is installed, you can start backup.
    • Method 1
      1. Log on to the host without Internet access.
      2. Choose Computer > Control Panel > System and Security > System > Advanced system settings > Environment Variables.
      3. In the Environment Variables dialog box, click New in the System variables area.
      4. Set Variable name to HBR_PROXY and Variable value to a string in the format of private IP address:listening port, such as http://10****:8888.
      5. After the environment variable is configured, restart the host.
      6. Install the ECS backup client in the HBR console. For more information, see Install an ECS backup client. If you need to install the offline backup client, see Create a client.
    • Method 2

      Install the backup client for the host without Internet access in the HBR console. If it is the first time you install a backup client for the host in the HBR console, the backup client fails to be installed. In this case, perform the following steps to activate the backup client:

      1. Log on to the host without Internet access. Add a .toml configuration file in the client directory in the installation directory of the backup client.
        • Windows
          1. Go to the client directory in the installation directory of the backup client, for example, C:\Program Files\Aliyun Hybrid Backup Service\client.
          2. Create the configuration file hybridbackup.toml.
          3. Add the following information to the hybridbackup.toml file and save the file:
            [Server]
            Proxy= "http://10. ****:8888"
        • Linux
          1. Go to the client directory in the installation directory of the backup client, for example, /opt/alibabacloud/hbr/client.
          2. Create the configuration file hybridbackup.toml.
            vi /opt/alibabacloud/hbr/client/hybridbackup.toml
          3. Add the following information to the hybridbackup.toml file and save the file:
            [Server]
            Proxy= "http://10. ****:8888"

        After the .toml file is added, restart the hybridbackup service.

      2. Find the host for which the backup client fails to be installed in the HBR console and click Activate Client.
      3. Start backup after the backup client is activated.