Alteon Application Switch Operating System Application Guide
Layer 7 String Handling
802
Document
ID:
RDWR-ALOS-V2900_AG1302
Configuring Exclusionary URL String Matching
This configuration example illustrates how to configure a server to handle any requests except
requests that contain the string "test", or requests that start with "/images" or "/product".
To configure exclusionary URL string matching
1. Before you can configure URL string matching, ensure that Alteon has already been configured
for basic SLB:
—
Assign an IP address to each of the real servers in the server pool.
—
Define an IP interface on Alteon.
—
Define each real server.
—
Assign servers to real server groups.
—
Define virtual servers and services.
—
Enable SLB.
—
Enable URL-based HTTP SLB.
For information on how to configure your network for SLB, see
Server Load Balancing, page 165
2. Add the load balancing strings (for example
test
,
/images
, and
/product
) to the real server:
3. Apply and save the configuration.
4. Identify the IDs of the defined strings.
5. Assign the URL string ID to the real server.
6. Enable the exclusionary string matching option.
If you configured an "any" string and enabled the exclusion option, the server does not handle any
requests. This has the same effect as disabling the server.
>> # /cfg/slb/layer7/slb/addstr "test"
>> Server Loadbalance Resource# addstr "/images"
>> Server Loadbalance Resource# addstr "/product"
>> Server Loadbalance Resource# cur
ID
SLB String
1
any
2
test
3
/images
4
/product
>> Real Server 1 Layer 7 commands# addlb 2
>> Real Server 1 Layer 7 commands# addlb 3
>> Real Server 1 Layer 7 commands# addlb 4
>> Real Server 1 Layer 7 commands# exclude enable