ADC
感谢您提供反馈

这篇文章已经过机器翻译.放弃

全局绑定策略

以下是典型的绑定程序。但是,请参阅文档了解您感兴趣的功能,了解完整的说明。

使用 CLI 全局绑定集成缓存策略

在命令提示符处,键入以下命令以绑定集成缓存策略并验证配置:

- bind cache global <policy> -priority <positiveInteger> [-type REQ_OVERRIDE | REQ_DEFAULT | RES_OVERRIDE | RES_DEFAULT] - show cache global

示例:

> bind cache global _nonPostReq -priority 100 -type req_default Done > show cache global 1) Global bindpoint: REQ_DEFAULT Number of bound policies: 2 2) Global bindpoint: RES_DEFAULT Number of bound policies: 1 Done

为了保持向后兼容性,type 参数是可选的。如果省略类型,则策略将绑定到 REQ_DEFAULT 或 RES_DEFAULT,具体取决于策略规则是响应时间还是请求时间表达式。

使用 CLI 全局绑定重写策略

在命令提示符处,键入以下命令以绑定 Rewrite 策略并验证配置:

- bind rewrite global <policyName> <priority> [-type REQ_OVERRIDE | REQ_DEFAULT | RES_OVERRIDE | RES_DEFAULT] - show rewrite global

示例:

bind rewrite global pol_remove-pdf 100 Done > show rewrite global 1) Global bindpoint: REQ_DEFAULT Number of bound policies: 1 2) Global bindpoint: REQ_OVERRIDE Number of bound policies: 1 Done

对于全局绑定策略,type 参数是可选的,以保持向后兼容性。如果省略类型,则策略将绑定到 REQ_DEFAULT 或 RES_DEFAULT,具体取决于策略规则是响应时间还是请求时间表达式。

使用 CLI 全局绑定压缩策略

在命令提示符处,键入以下命令以绑定压缩策略并验证配置:

- bind cmp global <policyName> -priority <positiveInteger> [-type REQ_OVERRIDE | REQ_DEFAULT | RES_OVERRIDE | RES_DEFAULT] - show cmp global

示例:

> bind cmp global cmp_pol_1 -priority 100 Done > show cmp policy cmp_pol_1 Name: cmp_pol_1 Rule: HTTP.REQ.URL.SUFFIX.EQ("BMP") Response Action: COMPRESS Hits: 0 Policy is bound to following entities 1) GLOBAL REQ_DEFAULT Priority: 100 GotoPriorityExpression: END Done

使用 CLI 全局绑定响应者策略

在命令提示符处,键入以下命令以绑定 Responder 策略并验证配置:

- bind responder global <policyName> <priority> [-type OVERRIDE | DEFAULT ] - show responder global

示例:

bind responder global pol404Error1 200 Done > show responder global 1) Global bindpoint: REQ_DEFAULT Number of bound policies: 1 Done

使用 CLI 全局绑定 DNS 策略

在命令提示符处,键入以下命令以绑定 DNS 策略并验证配置:

- bind dns global <policyName> <priority> - show dns global

示例:

> bind dns global pol_ddos_drop1 150 Done > show dns global Policy name : pol_ddos_drop Priority : 100 Goto expression : END Policy name : pol_ddos_drop1 Priority : 150 Done

使用 GUI 全局绑定集成的缓存、响应器、重写或压缩策略

  1. 在导航窗格中,单击要为其绑定策略的功能的名称。
  2. 在详细信息窗格中,单击 <Feature Name> 策略管理器。
  3. 在策略管理器对话框中,选择要绑定策略的绑定点(例如,对于集成缓存、重写或压缩,可以选择请求和默认全局)。响应者不区分请求时间策略和响应时间策略。
  4. 单击“插入策略”,然后从“策略名称”弹出菜单中选择策略名称。优先级会自动分配给策略,但如果您希望在此库中的其他策略之后评估策略,则可以单击“优先级”列中的单元格,并将其拖到对话框中的任意位置。优先级会自动重置。请注意,策略库中的优先级值必须是唯一的。
  5. 单击应用更改。
  6. 单击关闭。状态栏中的消息指示策略已成功绑定。

使用 GUI 全局绑定 DNS 策略

  1. 导航到 流量管理 > DNS > 策略。
  2. 在详细信息窗格中,单击 全局绑定。
  3. 在全局绑定对话框中,单击 插入策略,然后选择要全局绑定的策略。
  4. 单击 优先 级字段并输入优先级。
  5. 单击确定。状态栏中的消息指示策略已成功绑定。
本内容的正式版本为英文版。部分 Cloud Software Group 文档内容采用了机器翻译,仅供您参考。Cloud Software Group 无法控制机器翻译的内容,这些内容可能包含错误、不准确或不合适的语言。对于从英文原文翻译成任何其他语言的内容的准确性、可靠性、适用性或正确性,或者您的 Cloud Software Group 产品或服务沿用了任何机器翻译的内容,我们均不作任何明示或暗示的保证,并且适用的最终用户许可协议或服务条款或者与 Cloud Software Group 签订的任何其他协议(产品或服务与已进行机器翻译的任何文档保持一致)下的任何保证均不适用。对于因使用机器翻译的内容而引起的任何损害或问题,Cloud Software Group 不承担任何责任。