beautypg.com

HP Traffic Director sa7220 User Manual

Page 236

background image

C H A P T E R 6

HP Traffic Director Server Appliances User Guide

224

4. To move the prompt, type this command:

HP SA8220/config/policygroup/richtest/service/

rich/server#serv2.prime.com port 80

Add an Expression to serv2’s Configuration

1. Now add an expression to differentiate serv2’s content from that

of serv1 by typing this command. In this example, serv2
contains CGI content:

HP SA8220/config/policygroup/richtest/service/

rich/server/serv2.prime.com/port/80#

expression create /cgi-bin/*

2. To verify the setup of serv2, type this command at the prompt:

HP SA8220/config/policygroup/richtest/service/

rich/server/serv2.prime.com/port/80#expression

info

Policy group:richtest

Service:rich

Server Name: serv2.prime.com

Status Port Type Weight Mode MSAP 606 HTTP

------------------------------------------------

Active 80 Primary 1 BROKERED Off On Off

Index Expressions

1 /cgi-bin/*

The SA8220 now directs requests to specific servers according to
the content requested. serv2 receives requests entailing CGI
scripts (files located in the

/cgi-bin

directory), while all other

requests go to serv1.

Determine the Routing Method for VIP Addresses

After the service is set up, the SA8220 needs to be configured to route
the VIP address to the site’s routers. There are two possibilities:

In single SA8220 installations, the SA8220's “Standalone” mode
is preferred as it allows the VIP to be ARP-accessible from the
router.

If there are multiple address spaces (such as a SA8220 on the
10.x.x.x network and a VIP on the 209.x.x.x network), then a
routing protocol might be the best method to advertise the VIP.