Help Center/ Elastic Load Balance/ FAQs/ Listeners/ Do HTTP and HTTP Listeners Support the X-Forwarded-Host Header?
Updated on 2023-03-30 GMT+08:00

Do HTTP and HTTP Listeners Support the X-Forwarded-Host Header?

Yes. Table 1 describes the HTTP header fields supported by HTTP and HTTP Listeners.

Table 1 Supported header fields

Field

Description

X-Forwarded-ELB-IP

The EIP bound to the load balancer is transmitted to backend servers through the HTTP header.

X-Forwarded-Host

The Host field in the request from the client is placed in X-Forwarded-Host and sent to backend servers.

X-Forwarded-Port

The protocol used by the listener is transmitted to backend servers through the HTTP header.

X-Forwarded-Proto

The protocol type (HTTP or HTTPS) of the request is transmitted to backend servers through the HTTP header.

X-Forwarded-For

Source IP addresses and proxy IP addresses of the clients are transmitted to backend servers through the HTTP header.

X-Real-IP

Source IP addresses of the clients are transmitted to backend servers through the HTTP header.