beautypg.com

HP Traffic Director sa7220 User Manual

Page 235

background image

C H A P T E R 6

e-Commerce Appliance Scenarios

223

2. To move the prompt to the server level, type this command:

HP SA8220/config/policygroup/richtest/service/

rich#server serv1.prime.com port 80

Add Expressions to serv1’s Configuration

1. Finish the configuration by adding expressions to server

Serv1.com to differentiate content by typing these commands:

HP SA8220/config/policygroup/richtest/service/

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

create *.html

HP SA8220/config/policygroup/richtest/service/

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

create *.jpg

HP SA8220/config/policygroup/richtest/service/

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

create *.gif

2. To verify the setup of serv1.prime.com, type this command at the

prompt:

HP SA8220/config/policygroup/richtest/service/

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

info

Policy group:richtest

Service:rich

Server Name: serv1.prime.com

Status Port Type Weight Mode MSAP 606 HTTP

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

Active 80 Primary 1 BROKERED Off On Off

Index Expressions

1 *.html

2 *.jpg

3 *.gif

3. To add “serv2” to the rich service, type these commands:

HP SA8220/config/policygroup/richtest/service/

rich/server/serv1.prime.com/port/80#back

HP SA8220/config/policygroup/richtest/service/

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