Alteon Application Switch Operating System Application Guide
Server Load Balancing
8. Apply and save. In addition, you can use cur to see the complete rule list configuration:
>>URL Modification rule-list move-site2# apply
>>URL Modification rule-list move-site2# save
>>URL Modification rule-list move-site2# cur
Current rule-list: move-site2 enabled
20:
enabled
element url
match:
protocol http, port 80
host eq www.site2.com
path any
action:
protocol http, port 80
host replace www.site1.com
path insert site2/ before
Note:
The current rule matches any link that includes any path at www.site2.com. To modify the
URL HTTP://www.site2.com itself (with no path), a different rule is required. The path match is set
to equal empty (leave the value empty), so that the rule list looks as follows:
>>URL Modification rule-list move-site2# cur
Current rule-list: move-site2 enabled
20:
enabled
element url
match:
protocol http, port 80
host eq www.site2.com
path any
action:
protocol http, port 80
host replace www.site1.com
path insert site2/ before
direction response
body include
30:
enabled
element url
match:
protocol http, port 80
host eq www.site2.com
path eq
action:
protocol http, port 80
host replace www.site1.com
path insert site2/ before
direction response
body include
264
Document ID: RDWR-ALOS-V2900_AG1302