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-ELB-ID |
Transfer Load Balancer ID |
If this option is enabled, the load balancer ID will be transmitted to backend servers through the X-Forwarded-ELB-ID header. |
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 |
X-Forwarded-Proto |
Rewrite X-Forwarded-Proto |
|
Supported |
X-Real-IP |
Rewrite X-Real-IP |
|
Supported |
- 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
- Go to the load balancer list page.
- You can enable these header features in either of the following ways:
- On the displayed page, locate the load balancer and click its name. Under Listeners, click Add Listener.
- On the displayed 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
- Go to the load balancer list page.
- On the displayed 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