You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Condition lets you evaluate whether a specified header or variable exists by matching their values through text or a Regex pattern. For advanced rewrite configurations, you can also capture the value of header or server variable for later use under Rewrite Action. Know more about pattern and capturing.
50
+
A Condition lets you evaluate whether a specified header or variable exists by matching their values through text or a Regex pattern. For advanced rewrite configurations, you can also capture the value of header or server variable for later use under Rewrite Action. Know more about [pattern and capturing](#pattern-matching-and-capturing).
51
51
52
-
***Rewrite Action:**Use rewrite action set to rewrite Headers (Request or Response) or the URL components.
52
+
***Rewrite Action:**Rewrite action set allows you to rewrite Headers (Request or Response) or the URL components.
53
53
54
-
The action can have the following value types or their combinations:
55
-
1. Text
56
-
1. Request header's value - To use a captured request header value, specify the syntax as {http_req_headerName}
57
-
1. Response header's value - To use a captured response header value from Condition, specify the syntax as {http_resp_headerName}. Use {capt_header_value_matcher} if the value is captured from Action Set's Set-Cookie response header. Know more about Action Set capture. <linktosection>
58
-
1. Server variable - To use a server variable, specify the syntax as {var_serverVariable}. [List of supported Server variables](#server-variables).
54
+
An action can have the following value types or their combinations:
55
+
1. Text.
56
+
1. Request header's value - To use a captured request header value, specify the syntax as `{http_req_headerName}`.
57
+
1. Response header's value - To use a captured response header value from the preceeding Condition, specify the syntax as `{http_resp_headerName}`. You can use `{capt_header_value_matcher}` when the value is captured from Action Set's "Set-Cookie" response header. Know more about [capture under Action set](#syntax-for-capturing).
58
+
1. Server variable - To use a server variable, specify the syntax as `{var_serverVariable}`. [List of supported Server variables](#server-variables).
59
59
60
-
When using an Action for URL rewrite the following operations are supported:
61
-
1. URL path: The value to which the path is to be rewritten to.
62
-
1. URL Query String: The value to which the query string is to be rewritten to.
63
-
1. Re-evaluate path map: Used to determine whether the URL path map is to be reevaluated or not. If kept unchecked, the original URL path will be used to match the path-pattern in the URL path map. If set to true, the URL path map will be reevaluated to check the match with the rewritten path. Enabling this switch helps in routing the request to a different backend pool post rewrite.
60
+
When using an Action to rewrite a URL, the following operations are supported:
61
+
1. URL path: The new value to be set as the path.
62
+
1. URL Query String: The new value to which the query string must be rewritten to.
63
+
1. Re-evaluate path map: Specify if the URL path map must be re-evaluated after rewrite. If kept unchecked, the original URL path will be used to match the path-pattern in the URL path map. If set to true, the URL path map will be re-evaluated to check the match with the rewritten path. Enabling this switch helps in routing the request to a different backend pool post rewrite.
64
64
65
+
DONE
65
66
66
67
## Pattern matching and Capturing
67
68
Patten matching and capturing are supported under Condition and Action. Pattern matching and capturing under Action is supported only for a specific header.
0 commit comments