Configuration Item | Description |
Rule Name | Enter the name of a forwarding rule, which cannot exceed 255 characters. The value can contain characters such as digits, letters, Chinese characters, hyphens, underscores, and periods. If it is left empty, the system automatically generates a name. |
Forwarding Condition | Set a matching condition for requests. Traffic is forwarded only when all conditions are met. Select Condition Type from the drop-down list and enter the corresponding value. Click + Add Condition to add multiple conditions. Note: Up to 10 forwarding conditions are supported. |
Forwarding Action | Set the action to be performed on a request after a successful match. Traffic is forwarded when any action is performed. Select Action Type from the drop-down list and complete the configuration. Click + Add Action to add multiple actions. Note: Up to 5 forwarding actions are supported. |
Priority | Set the order in which forwarding rules take effect within a listener. The value range is 1–10000. A smaller value indicates a higher priority. Priorities must be unique within the same listener. You can click View Existing Listener Rule to expand the priorities and rule IDs of existing rules under the current listener, facilitating rational planning and avoiding conflicts. |
Condition Type | Description |
Domain name | Matching based on the domain name in the client request. It supports exact matching, wildcard matching, and regular expression matching (case-insensitive). It can contain 3 to 128 characters. It supports characters such as letters (a–z), digits (0–9), hyphens (-), underscores (_), periods (.), and commas (,). |
Path | Matching based on the URL path in the client request. It supports exact matching, wildcard matching, regular expression matching (case-insensitive), and regular expression matching (case-sensitive). It can contain up to 128 characters and supports exact matching starting with a forward slash (/). |
HTTP Header | Matching based on the key-value pairs in the request HTTP headers. Enter the header name in the Key field and the header content in the Value field. You can add one or more header key-value pairs. A key can contain 1 to 40 characters, including letters, digits, and underscores, but cannot be Host/Cookie. A value can contain up to 128 characters, excluding double quotation marks. It cannot start or end with a space. |
Query String | Matching based on the key-value pairs in the request URL's Query String. You can add one or more key-value pairs. A key can contain 1 to 16 characters, excluding upper letters, spaces, and the following special characters: #[]{}\\ A value can contain up to 128 characters, excluding spaces and the following special characters: #[]{}\\|<>& |
HTTP Request Method | Matching based on the HTTP method of the request. Supported methods include HEAD, GET, POST, OPTIONS, PUT, PATCH, and DELETE. |
Cookie | Matching based on the key-value pairs in the cookies carried by the request. You can add one or more key-value pairs. A key can contain 1 to 64 characters, including lowercase letters, digits, underscores, and hyphens. A value can be up to 128 characters, excluding uppercase letters, control characters, semicolons, commas, spaces, quotation marks, or backslashes. |
SourceIp | Matching based on the source IP address or IP range of the client. You can add one or more IP addresses/IP ranges. It supports the IPv4 CIDR format. It supports /24 and /32. It does not support 0.0.0.0/x. |
Action Type | Description |
Forwarding to | Forwards matched requests to the specified backend target group. You can select one or more target groups and control the traffic distribution ratio by setting the weight for each target group. |
Redirecting to | Redirects requests to a specified protocol, domain name, port, path, query, and status code. |
Returning a fixed response | Returns a fixed-response status code and response body from ALB directly to the client, instead of forwarding them to the backend. The response status code must be within the range of 200–299 or 400–599. The response body type, supporting text/plain, text/css, text/html, application/javascript, and application/json. It only supports ASCII characters and has a maximum size of 1 KB. |
Rewriting | Rewrites the domain name, path, and other elements of a request to specified values within ALB before the request is forwarded to the backend, while the URL in the client browser's address bar remains unchanged. |
Writing a header | Writes the specified HTTP header fields (key-value pairs) into the request. A key can contain 1–40 characters, including letters, digits, underscores, and hyphens. A value can be user-specified, referenced, or system-defined and can contain up to 128 characters, excluding double quotation marks. It cannot start or end with a space. |
Deleting a header | Deletes the HTTP header field with the specified name from the request. It can contain 1–40 characters, including letters, digits, underscores, and hyphens. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback