Create or modify a policy
Create a policy by using the CLI
- add responder|dns|cs|rewrite|cache policy <policyName> -rule <expression> [<feature-specific information>]
- show rewrite policy <name>
add rewrite policy "pol_remove-ae" true "act_remove-ae"
Done
> show rewrite policy pol_remove-ae
Name: pol_remove-ae
Rule: true
RewriteAction: act_remove-ae
UndefAction: Use Global
Hits: 0
Undef Hits: 0
Bound to: GLOBAL RES_OVERRIDE
Priority: 90
GotoPriorityExpression: END
Done
add cache policy BranchReportsCachePolicy -rule q{http.req.url.query.value("actionoverride").contains("branchReport s")} -action cache
Done
show cache policy BranchReportsCachePolicy
Name: BranchReportsCachePolicy
Rule: http.req.url.query.value("actionoverride").contains("branchReports")
CacheAction: CACHE
Stored in group: DEFAULT
UndefAction: Use Global
Hits: 0
Undef Hits: 0
Done
Create or modify a policy by using the GUI
-
In the navigation pane, expand the name of the feature for which you want to configure a policy, and then click Policies. For example, you can select Content Switching, Integrated Caching, DNS, Rewrite, or Responder.
-
In the details pane, click Add, or select an existing policy and click Open. A policy configuration dialog box appears.
-
Specify values for the following parameters. (An asterisk indicates a required parameter. For a term in parentheses, see the corresponding parameter in "Parameters for creating or modifying a policy.")
-
Click Create, and then click Close.
-
Click Save. A policy is added. Note: After you create a policy, you can view the policy’s details by clicking the policy entry in the configuration pane. Details that are highlighted and underlined are links to the corresponding entity (for example, a named expression).