Alteon Application Switch Operating System Application Guide
Server Load Balancing
262
Document
ID:
RDWR-ALOS-V2900_AG1302
6. Set the required action. Since a path match was set, an action also must be specified. To leave
the path unchanged, use replace with the same path string.
7. Enable the rule and the rule list.
8. Apply and save. In addition, you can use cur to see the complete rule list configuration:
Example
3: Update Host and Path
All links to HTTP://www.site2.com/anypath should be updated to point to
HTTP://www.site1.com/site2/anypath.
1. Configure the required real servers, group, virtual server and HTTP service. Associate an HTTP
modification policy to achieve the HTTPS links.
2. Create the HTTP modifications rule list.
>>URL Modification force-https Rule 10#action
>>URL Match#protocol https
>>URL Match#path
Current path action configuration: none
Enter path action-type [insert|replace|remove|none] [none]: replace
Enter new path to replace the matched section: /sensitive/
>>URL Modification force-https Rule 10#ena
>>URL Modification force-https Rule 10#..
>>URL Modification rule-list force-https#ena
>>URL Modification rule-list force-https# apply
>>URL Modification rule-list force-https# save
>>URL Modification rule-list force-https# cur
Current rule-list: force-https enabled
10:
enabled
element url
match:
protocol http, port 80
path incl /sensitive/
action:
protocol https, port 443
path replace /sensitive/
direction response
body include
>> HTTP Load Balancing Menu # httpmod
Current HTTP modifications rule-list:
Enter new HTTP modifications rule-list or none: move-site2
For HTTP Modification rule-list configuration use /cfg/slb/layer7/httpmod
>> Main # /cfg/slb/layer7/httpmod
Enter HTTP Modification rule-list id (alphanumeric): move-site2