Enabling content switching, Http url rewrite configuration summary – Brocade Virtual ADX Server Load Balancing Guide (Supporting ADX v03.1.00) User Manual
Page 286

270
Brocade Virtual ADX Server Load Balancing Guide
53-1003247-01
Sample configurations
5
Enabling content switching
To enable content switching, follow these steps.
1. Bind the policy to virtual HTTP port on virtual server.
Virtual ADX(config-vs-csw-vip)#port http csw-policy mypolicy
Syntax: port http csw-policy policy-name
2. Enable CSW on the virtual port.
Virtual ADX(config-vs-csw-vip)#port http csw
Syntax: port http csw
HTTP URL Rewrite configuration summary
The following example shows a summary of the configuration steps.
#csw-rule r11 url pattern /xyz
#csw-rule r12a header Accept-Charset prefix ISO-
#csw-policy mypolicy
#match r11 forward 1025
#match r11 rewrite request-delete matched-string
#match r11 log
#match r12a forward 1025
#match r12a rewrite request-delete offset 4 2
#default forward 1026
#server real web1 10.1.1.1
#port http
#server real web2 10.1.1.2
#port http
#server virtual-name-or-ip csw-vip 10.1.1.100
#port http
#port http csw-policy mypolicy
#port http csw
#bind http web1 http web2 http