Configuring Header Forwarding
This topic describes how to use WAF to insert additional header fields into website requests. For example, you can insert the $request_id field into the request header to identify the request throughout the entire link.
Prerequisites
The website to be protected has been added to WAF.
Constraints
- You can configure up to eight key/value pairs.
- The key value can be set to any value other than keys in native Nginx fields.
- Dots (.) cannot be specified in the request header for forwarding.
- The value can be set to a custom string or a variable starting with $. Variables starting with $ support only the following fields:
$time_local $request_id $connection_requests $tenant_id $project_id $remote_addr $remote_port $scheme $request_method $http_host $origin_uri $request_length $ssl_server_name $ssl_protocol $ssl_curves $ssl_session_reused
Configuring Header Forwarding
- Log in to the management console.
- Click
in the upper left corner of the management console and select a region or project.
- Click
in the upper left corner and choose Web Application Firewall under Security.
- In the navigation pane on the left, choose Website Settings.
- On the Website Settings page, click the target website domain name to go to its basic information page.
- In the Advanced Settings area, click
next to Forward Field.
- In the displayed dialog box, enter a key/value pair and click Add to add multiple fields.
- After the fields are added, click Confirm.
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