Updated on 2024-04-25 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.

Prerequisites

The domain name has been added to AAD.

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

Procedure

  1. Log in to the management console.
  2. Select a region in the upper part of the page, click in the upper left corner of the page, and choose Security & Compliance > Anti-DDoS Service. The Anti-DDoS Service Center page is displayed.
  3. In the navigation pane on the left, choose Advanced Anti-DDoS > Domain Name Access. The Domain Name Acess page is displayed.

    Figure 1 Domain name access

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

    Figure 2 Forwarding rule fields

  6. Click OK.