Alteon Application Switch Operating System Application Guide
Server Load Balancing
Document ID: RDWR-ALOS-V2900_AG1302
225
—
The following rule defines matching the "secure" class and redirecting traffic to a secure
site:
Note:
The redirection location must consist of a full URL (including protocol, hostname, and path).
The optional tokens enable dynamic copying of URL parts from the request to the redirect location,
as a result preserving original client requests.
>> Virtual Server 10 80 http Service# /cfg/slb/virt/service
>> Virtual Server 10 80 http Service# cntrules
Enter Content Based Services Rule number (1-12800): 15
------------------------------------------------------------
[HTTP Content Rule 15 Menu]
name - Set descriptive content rule name
cntclss - Set content class for this rule
action - Set action type for this rule
group - Set real server group number for this rule
redirect - Set application redirection location for this rule
copy - Copy rule
ena - Enable rule
dis - Disable rule
del - Delete rule
cur - Display current rule configuration
>> HTTP Content Rule 15# name
Current descriptive content rule name:
Enter new descriptive content rule name: redirect secure request
>> HTTP Content Rule 15# cntclss
Current content class:
Enter new content class or none: secure
For content class updates use /cfg/slb/layer7/slb
>> HTTP Content Rule 15# action
Current action type: group
Enter new action type [group|redirect|discard] : redirect
>> HTTP Content Rule 15# redirect ?
Usage: redirect <"redirection location"> |none
To use the same value as in the request, use:
$PROTOCOL, $PORT, $HOST, $PATH, $QUERY
Examples:
http://www.mysite.com:8080/mypath
https://$HOST/new/$PATH
>> HTTP Content Rule 15# redirect
Enter new redirect location: https://$HOST/$PATH?$QUERY