Alteon Application Switch Operating System Application Guide
Server Load Balancing
256
Document
ID:
RDWR-ALOS-V2900_AG1302
3. Enter action to access the Rule Action menu, and then enter replace to set the new rule
replace action.
Example
To replace responses with status code of 333 to 444 with text of "status is 444", use the following
configuration:
If you do not set the new status line, the previous text remains.
Configuring HTTP Modification for URL Elements
Modification for URL element s lets you perform complex operations. You can set actions for the
protocol (HTTP or HTTPS), port, host, path, page name and page type in one rule.
For example, when the URL is as HTTP://www.site.com/a/b/c/index.html, the following results:
—
The protocol is HTTP
—
The port is 80 (default for HTTP)
—
The host is www.site.com
—
The path is a/b/c
—
The page name is index
—
The page type is html
All the components within this URL can be modified using a single HTTP Modification URL rule.
The following topics are discussed in this section:
•
Configuring Modification for HTTP URL Elements, page 257
•
Example 1: Update the Path, page 259
•
Example 2: Force links to sensitive information to use HTTPS, page 261
•
Example 3: Update Host and Path, page 262
>>statusline Modification http-mod-list Rule 5 # action
>>Current rule action:
>>Enter status code to replace: 333
>>Enter status line to replace or none:
>>Enter new status code or none: 444
>>Enter new status line or none:
>> HTTP Modification http-mod-list Rule 1# cur
Current rule: 1
enabled
action replace statusline
from: STATUSCODE=333
to: STATUSCODE=444, STATUSLINE=status is 444
direction response