- Enabling Content Switching
- Configuring a Load Balancing Virtual Server for the Cache
- Configuring Policies for Content Switching
- Configuring Precedence for Policy Evaluation
You can configure a content switching policy based on either a rule, which is a generic configuration to accommodate various content types, or a URL, which is more specific and defines exactly the type of content that has to be sent to a particular cache server. Essentially, the same content can be defined by either a rule based policy or a URL based policy.
Once you bind content switching policies of either type to a cache redirection virtual server, you can configure the virtual server to give precedence to either rule based or URL based policies. This will, in turn, decide which servers the particular requests are directed to.
To configure precedence for policy evaluation, use the precedence parameter, which specifies the type of policy (URL or RULE) that takes precedence on the content redirection virtual server.
Possible values: RULE, URL
Default value: RULE
At the command prompt, type the following commands to configure precedence for policy evaluation and verify the configuration:
> set cr vserver Vserver-CRD-1 -precedence URL Done > show cr vserver Vserver-CRD-1 Vserver-CRD-1 (*:80) - HTTP Type: CONTENT State: UP ARP:DISABLED Client Idle Timeout: 180 sec Down state flush: ENABLED Disable Primary Vserver On Down : DISABLED Default: Content Precedence: URL Cache: TRANSPARENT On Policy Match: ORIGIN L2Conn: OFF OriginUSIP: OFF Redirect: POLICY Reuse: ON Via: ON ARP: OFF 1) Cache bypass Policy: bypass-cache-control 2) Cache bypass Policy: Policy-CRD Done >