Parameters | Notes |
Domain | Specify one or more domain names. When you specify multiple domain names, the relationship between these domain names is OR.
warning A wildcard domain name only matches domain names at the same level. For example, *.example.com matches www.example.com but not example.com. |
URL path | Specify one or more paths. When you specify multiple paths, the relationship between these paths is OR.
|
HTTP header | Set HTTP headers. HTTP header is expressed in the form of key-value pairs. Each key can correspond to multiple values, and the relationship between these values is OR. Within the same forwarding rule, key must be unique. If you need to add multiple HTTP headers, click Add forwarding condition.
|
HTTP request method | Select one or more HTTP request methods. When you select multiple request methods, the relationship between these methods is OR. The following request methods are supported: HEAD, GET, POST, OPTIONS, PUT, PATCH, DELETE. |
Query string | Set query string. The query string is expressed in the form of key-value pairs. Within the same forwarding condition, the relationship between multiple key-value pairs is OR. Across different forwarding conditions, the relationship between key-value pairs is AND. Within the same forwarding rule, key-value pairs must be unique.
|
Cookie | Add one or more cookies.
tip This feature is currently in Beta stage. For trial requests, please contact your account manager. |
SourceIP | Only requests that match the SourceIP condition will be forwarded.
tip This feature is currently in Beta stage. For trial requests, please contact your account manager. |
Parameters | Notes |
Server group | Select the server group to which requests are forwarded.
|
Session persistence among server groups | Enable session persistence among server groups.
|
Parameters | Notes |
Agreement | Select the protocol for redirection. The protocol can be HTTPS or HTTP. When a request meets the specified forwarding condition(s), it will be redirected. |
Domain | Specify the domain name to which the request is redirected.
|
Port | Specify the port to which the request is redirected. Port range: 1 to 65535. If you do not specify a port, the redirected port will be the same as the request port. |
URI | Specify the path to which the request is redirected.
|
Query | Specify the query string of the redirect target URL, which is the part after the ? in the URL, e.g., xxx=xxx. Example: city=beijing in www.test.com/test/?city=beijing.
|
Status code | Select a status code to indicate the redirection response status. The default status code is 301, indicating that the requested resource has been permanently moved to a new location. ALB supports status codes 301, 302, 307, and 308. |
Parameters | Notes |
Path | Specify the new path. When a request meets the specified forwarding condition(s), it will be forwarded to the new path. The path must comply with the following specifications:
|
Domain | Specify the new domain name. When a request meets the specified forwarding condition(s), it will be forwarded to the new domain name. Domains must comply with the following specifications:
|
Parameters | Notes |
QPS | Configure QPS.
|
Parameters | Notes |
HTTP response code | Set the HTTP response status code. Allowed response status codes include 2xx, 4xx, and 5xx. The x can be any number from 0 to 9. |
Response body type | Set the response body type. The response returned by ALB to the client will include the Content-Type header. Allowed response body types include: text/plain, text/css, text/html, application/javascript, and application/json. |
Response body | Optional. Configure the response body. Maximum of 1024 characters is supported. |
Parameters | Notes |
Allowed sources | Set the site allowed to access server resources via browser.
|
Allowed methods | Select the allowed HTTP method for cross-origin access.
|
Allowed request headers | Allowed headers for cross-origin requests (excluding default browser headers)
|
Allowed response headers | Response headers allowed to be accessed by browsers and JavaScript scripts
|
Allow credentials | Allow credentials for cross-origin requests
|
Browser cache duration | Set the browser cache duration. Value range: -1 to 172,800 seconds. |
Parameters | Notes |
Key | Enter the header field name.
|
Value type | Header field content type. Valid values:
|
Value | Enter the header field content.
tip $endpoint_id parameter is in invite-only beta. For trial requests, please contact your account manager.
|
Parameters | Notes |
Description | Enter the description of the forwarding rules. The description must comply with the following specifications:
|