Alteon Application Switch Operating System Application Guide
Server Load Balancing
Document ID: RDWR-ALOS-V2900_AG1302
247
Example
To replace the value of the HTTP Header "My-Header" in all client requests, so that the first match of
the string "ABC" is replaced with "XYZ", use the following configuration:
The header value is only replaced if the original string is an exact match of the complete
replacement value. In this example, if the value is “ABCABC”, it is not replaced since it is not an
exact match.
To configure the remove action for HTTP Headers
With this action, the entire matching header field is removed. The value specified is used to decide
whether the header should be removed. Only the first encountered matching header field of the
original string in the message is removed. A value match means a complete word within the value of
the header.
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.
>>header Modification http-mod-list Rule 5 # directn
>>Enter new rule direction [req:resp] [req]:
>>HTTP Modification http_mod Rule 2# cur
Current rule: 2
enabled, name My_list
action replace header
from: HEADER=My-Header, VALUE=ABC
to: HEADER=My-Header, VALUE=XYZ
direction request
>>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: header
>>header Modification http-mod-list Rule 5
Содержание Alteon
Страница 2: ...Alteon Application Switch Operating System Application Guide 2 Document ID RDWR ALOS V2900_AG1302 ...
Страница 42: ...Alteon Application Switch Operating System Application Guide Preface 42 Document ID RDWR ALOS V2900_AG1302 ...
Страница 582: ...Alteon Application Switch Operating System Application Guide High Availability 582 Document ID RDWR ALOS V2900_AG1302 ...