Updated on 2025-08-20 GMT+08:00

Configuring Field Forwarding

AAD lets you configure field forwarding for domain names to add fields to the header and send it to the origin server.

You can add header fields to the back-to-origin requests to identify those that pass through AAD for service statistics analysis.

Limitations and Constraints

  • You can configure up to eight key/value pairs.
  • Note that the key value of a custom header field cannot be the same as any native Nginx fields.
  • 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 Field Forwarding

  1. Log in to the AAD console.
  2. In the navigation pane on the left, choose Advanced Anti-DDoS > Domain Name Access. The Domain Name Access page is displayed.

    Figure 1 Domain name access

  3. In the Advanced Setting column of the row containing the target domain name, click Modify.
  4. Enter the Key/Value value and click Add.

    Figure 2 Forwarding rule fields

  5. Click OK.