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 image1 and select the desired region and project.

  3. Hover on image2 in the upper left corner to display Service List and choose Network > Elastic Load Balancing.

  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. Click OK.

    Note

    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 image3 and select the desired region and project.

  3. Hover on image4 in the upper left corner to display Service List and choose Network > Elastic Load Balancing.

  4. Locate the load balancer and click its name.

  5. On the Listeners tab page, locate the listener, click image5 next to the listener name, and select Modify Listener.

  6. In the Modify Listener dialog box, expand Advanced Settings and disable the function.