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 HTTP listeners.
Header |
Feature |
Description |
Dedicated Load Balancers |
---|---|---|---|
X-Forwarded-ELB-IP |
Transfer Load Balancer EIP |
If this option is enabled, the EIP bound to the load balancer will be transmitted to backend servers through the X-Forwarded-ELB-IP header. The format is as follows (XX.XXX.XX.XXX indicates the EIP of the load balancer): X-Forwarded-ELB-IP: XX.XXX.XX.XXX |
Supported |
X-Forwarded-Port |
Transfer Listener Port Number |
If this option is enabled, the port number used by the listener will be transmitted to backend servers through the X-Forwarded-Port header. |
Supported |
X-Forwarded-For-Port |
Transfer Port Number in the Request |
If this option is enabled, the port number used by the client will be transmitted to backend servers through the X-Forwarded-For-Port header. |
Supported |
Header |
Feature |
Description |
Dedicated Load Balancers |
---|---|---|---|
X-Forwarded-Host |
Rewrite X-Forwarded-Host |
|
Supported |
![](https://support.huaweicloud.com/intl/en-us/usermanual-elb/public_sys-resources/note_3.0-en-us.png)
- More HTTP headers are coming soon. See the available HTTP headers on the management console.
- √ indicates the load balancer supports the header, whereas × indicates the load balancer does not support the header.
Enabling HTTP/HTTPS Headers
- Log in to the management console.
- In the upper left corner of the page, click
and select the desired region and project.
- Click
in the upper left corner to display Service List and choose Networking > Elastic Load Balance.
- You can enable these header features in either of the following ways:
- On the Load Balancers page, locate the load balancer and click its name. Under Listeners, click Add Listener.
- On the Load Balancers page, locate the load balancer and click Add Listener in the Operation column.
- On the Configure Listener page, expand Advanced Settings and enable the features as needed.
- Configure the listener as prompted.
- Confirm the configuration and click Submit.
Modifying HTTP Header Features
- Log in to the management console.
- In the upper left corner of the page, click
and select the desired region and project.
- Click
in the upper left corner to display Service List and choose Networking > Elastic Load Balance.
- On the Load Balancers page, locate the load balancer and click its name.
- Click the Listeners tab, locate the target listener and click Edit in Operation column.
- On the displayed page, expand Advanced Settings and enable or disable the features.
- Click OK.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot