Updated on 2024-04-19 GMT+08:00

Transferring the Load Balancer EIP to Backend Servers

Scenarios

ELB allows the EIPs of the load balancers to be passed to backend servers. You can enable the function when you add HTTPS or HTTP listeners.

Load balancer EIPs are placed in the X-Forwarded-ELB-IP field in the HTTPS or HTTP header in the format of XX.XXX.XX.XXX, as shown below:

X-Forwarded-ELB-IP: XX.XXX.XX.XXX

Enabling the Function

  1. Log in to the management console.
  2. In the upper left corner of the page, click and select the desired region and project.
  3. Hover on in the upper left corner to display Service List and choose Network > Elastic Load Balance.
  4. Locate the load balancer and click its name.
  5. Under Listeners, click Add Listener.
  6. In the Add Listener dialog box, expand Advanced Settings and enable the function.
  7. Confirm the configurations and click Submit.

    This function can be enabled only for HTTPS or HTTP listeners.

Disabling the Function

  1. Log in to the management console.
  2. In the upper left corner of the page, click and select the desired region and project.
  3. Hover on in the upper left corner to display Service List and choose Network > Elastic Load Balance.
  4. Locate the load balancer and click its name.
  5. Click Listeners, locate the listener, and click its name.
  6. On the Summary tab page, click Edit on the top right.
  7. In the Edit dialog box, expand Advanced Settings and disable the function.
  8. Click OK.