Configure a cache redirection virtual server

By default, a cache redirection virtual server forwards cacheable requests to the load balancing virtual server for the cache, and forwards non-cacheable requests to the origin server (except in a reverse proxy configuration, in which non-cacheable requests are sent to a load balancing virtual server). There are three types of cache redirection virtual servers: transparent, forward proxy, and reverse proxy.

A transparent cache redirection virtual server uses an IP address of * and a port number, usually 80, that can accept HTTP traffic sent to any IP address that the appliance represents. As a result, you can configure only one transparent cache redirection virtual server. Any additional cache redirection virtual servers that you configure must be forward proxy or reverse proxy redirection servers.

add a cache redirection virtual server in transparent mode by using the cli

At the command prompt, type the following commands to add a cache redirection virtual server and verify the configuration:

-  add cr vserver <name> <serviceType> [<IPAddress> <port> ] [-cacheType <cacheType>] [-redirect <redirect>]
-  show cr vserver [<name>]

Example:

add cr vserver Vserver-CRD-1 HTTP * 80 -cacheType TRANSPARENT -redirect POLICY
> 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: RULE        Cache: TRANSPARENT
        On Policy Match: ORIGIN L2Conn: OFF     OriginUSIP: OFF
        Redirect: POLICY        Reuse: ON       Via: ON ARP: OFF
 Done

Modify or remove a cache redirection virtual server by using the CLI

  • To modify a virtual server, use the set cr vserver command, which is just like using the add cr vserver command, except that you enter the name of an existing virtual server.
  • To remove a virtual server, use the rm cr vserver command, which accepts only the <name> argument.

Add a cache redirection virtual server in transparent mode by using the GUI

  1. Navigate to Traffic Management > Cache Redirection > Virtual Servers.

  2. In the details pane, click Add.

  3. In the Create Virtual Server (Cache Redirection) dialog box, specify values for the following parameters as shown:

    • Name*—name
    • Port*—port

    *A required parameter

  4. In the Protocol drop-down list, select a supported protocol (for example, HTTP). If the virtual server is to receive traffic on a port other than the standard port for the selected protocol, enter a new value in the Port field.

  5. Click the Advanced tab.

  6. Verify that Cache Type is set to TRANSPARENT and Redirect is set to POLICY.

  7. Click Create, and then click Close. The Cache Redirection Virtual Servers pane displays the new virtual server.

  8. Select the new cache redirection virtual server to display the details of its configuration.