Updated on 2025-07-25 GMT+08:00

HTTP Headers

HTTP headers are a list of strings sent and received by both the client and server on every Hypertext Transfer Protocol (HTTP) request and response. This section describes HTTP headers supported by HTTP and HTTPS listeners. You can enable these headers as required.

Table 1 HTTP headers that can transfer client information

Header

Description

X-Real-IP

Rewrites the client IP address in the X-Real-IP header and transfers it to backend servers.

X-Forwarded-For-Port

Rewrites the client port in the X-Forwarded-For-Port header and transfers it to backend servers.

X-Forwarded-Host

Rewrites the client domain name in the X-Forwarded-Host header and transfers it to backend servers.

Table 2 HTTP headers that can transfer load balancer information

Header

Description

X-Forwarded-Proto

Rewrites the listener protocol in the X-Forwarded-Proto header and transfers it to backend servers.

X-Forwarded-ELB-IP

Rewrites the EIP used by the load balancer in the X-Forwarded-ELB-IP header and transfers it to backend servers.

X-Forwarded-Port

Rewrites the listener port in the X-Forwarded-Port header and transfers it to backend servers.

X-Forwarded-ELB-ID

Rewrites the load balancer ID in the X-Forwarded-ELB-ID header and transfers it to backend servers.

More HTTP headers are coming soon. See the available HTTP headers on the management console.

Adding HTTP Headers

  1. Go to the load balancer list page.
  2. You can add a listener in either of the following ways:
    • On the displayed page, locate the load balancer and click its name. On the Listeners tab, click Add Listener.
    • On the displayed page, locate the load balancer and click Add Listener in the Operation column.
  3. On the Add Listener page, expand Advanced Settings (Optional) and select the headers as needed.
  4. Configure the listener as prompted.
  5. Confirm the configuration and click Submit.

Modifying HTTP Headers

  1. Go to the load balancer list page.
  2. On the displayed page, locate the load balancer and click its name.
  3. Click the Listeners tab, locate the target listener and click Edit in Operation column.
  4. On the Edit page, expand Advanced Settings (Optional) and select the headers as needed.
  5. Click OK.