Forum Discussion
Leonardo_Souza
May 09, 2017Cirrocumulus
The default strategy is first-match, so only the first rule is triggered. Change that to all-match, and should work.
Example from my lab, where I successfully tested this:
[root@LABBIGIP2:ModuleNotLicensed:Active:Changes Pending] config tmsh list ltm policy policy1
ltm policy policy1 {
controls { forwarding }
requires { http }
rules {
cookie {
actions {
0 {
http-set-cookie
response
insert
name stop_mobile
path /
value yes
}
}
ordinal 1
}
redirect {
actions {
0 {
http-reply
redirect
location http://asm.lab.local/
}
}
ordinal 2
}
}
strategy all-match
}