Example:
Group 1 will service all requests with ‘.jpg’ in the URL while Group 2 will service all requests with ‘english’ in the URL.
Group 1: URL: .jpg
Members:
Server1: sj1.example.com
Server2: sj2.example.com
Group 2: URL: ‘english’
Members:
Server3: sj3.example.com
Server4: sj4.example.com
First let us define the two groups and their members, much as before.
slb
group method group1 rr
slb group member group1 server1
slb group member group1 server2
slb group method group2 rr
slb group member group2 server3
slb group member group2 server4
slb virtual http vip1 10.1.150.50
slb policy
qos url url_pol_1 vip1 group1 “.jpg ”1
slb policy qos url url_pol_2 vip1 group2 english 2
slb policy default vip1 group2