Alteon Application Switch Operating System Application Guide
Server Load Balancing
254
Document
ID:
RDWR-ALOS-V2900_AG1302
B
To insert the Set-Cookie for a cookie named "Device-ID" with the value "Alteon123" to server
responses where a cookie named "GSLB" with the value "On" exists, use the following
configuration:
The header is only inserted if the response contains the header Set-Cookie: GSLB=On.
Configuring HTTP Modifications for the HTTP File Type
When creating a rule for an HTTP file type element, only the replace action can be defined. Only the
request direction is supported.
In the response, the file type may appear in different locations. If such file type elements need to be
modified, the modification depends on the location, as follows:
•
HTTP Headers in the server response—Location and Content-Type
—
The Content type field indicates the media type of the entity-body sent to the recipient
—
The Location is used to redirect the recipient to a location other than the Request-URL for
completion of the request
—
If you want to modify these headers, use HTTP modification for headers and specify header
name as Location or Content-Type accordingly.
•
Links that appear in the HTML within the server response—If you want to modify all file types of
other objects referenced in the server’s response (for example, links in the HTML), then use URL
modification and select Header and Body.
To configure HTTP modification for the HTTP file type
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.
>> HTTP Modification http-mod-list Rule 1# cur
Current rule: 1
enabled, name My_list
action insert cookie
KEY=Device_ID, VALUE=Alteon123
MATCH=cookie, KEY=GSLB, VALUE=On
direction response
>>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: filetype
>>filetype 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 ...