Alteon Application Switch Operating System Application Guide
Server Load Balancing
Document ID: RDWR-ALOS-V2900_AG1302
265
Configuring HTTP Modification for Text Elements
When configuring actions for text elements, these modifications are applied to the header only
(default), or to both the header and body, of the HTTP responses or requests.
When creating a rule for a HTTP text element, the following actions can be defined:
•
To configure the replace action for an HTTP text element, page 265
•
To configure the remove action for the HTTP text element, page 266
To configure the replace action for an HTTP text element
This action replaces the matched string with the new text specified.
Note:
The numbers and names in this procedure are examples only.
1. Access HTTP Modification rule list configuration via the Layer 7 menu, enter a rule list ID, and
enable the rule list.
2. Enter rule, the rule ID number, and then enter the desired element type.
3. Enter action to access the Rule Action menu, and then enter replace to set the new rule
replace action.
4. Enter directn to set the rule direction, and then enter the desired rule direction.
5. Enter body
to enable text modification in the body.
>>Main# /cfg/slb/layer7/httpmod
>>Enter HTTP Modification rule-list id (alphanumeric): http-mod-list
>>HTTP Modification rule-list http-mod-list# ena
>>HTTP Modification rule-list http-mod-list# rule
>>Enter HTTP Modification rule number (1-128):5
>>Element can be one of: url, header, cookie, filetype, statusline, text
>>Enter element to be modified: text
>>text Modification http-mod-list Rule 5
>>text Modification http-mod-list Rule 5 # action
>>Enter rule action [replace:remove]: replace
>>Enter text to replace: Copyright 2013
>>Enter new text: All rights reserved
>>text Modification http-mod-list Rule 5 # directn
>>Enter new rule modification direction [req:resp] [req]: resp
>>text Modification http-mod-list Rule 5 # body
>>Current rule body: exclude
>>Enter new rule body [include:exclude] [exclude]: include