LTM Policy Combining ASM and Forwarding - Not Working
Hi all,
I've combined two LTM policies that were both attached to a single VS. One just used Forwarding and the other effectively a "send all to ASM" default policy. Both policies are fairly simple as far as I'm concerned, but the combined policy (below) doesn't seem to work fully.
The last test I did, everything appeared to be OK, except for the "redirect-to-home" bit. It's supposed to ensure that if you enter the FQDN of the app and nothing else you get redirected to There are two ways in which this didn't work: 1) I just ended up with a blank page, which was not and 2) if I entered I would get redirected to
I tried each of the strategies, but all resulted in the same behaviour. I'm sure it's going to be something incredibly simple that I've overlooked - perhaps in disabling ASM in the redirect section? - but I can't seem to figure it out. I'm hoping someone can see an obvious error as I'm unable to re-apply this policy to the VS at the moment because the app is used quite heavily.
Thanks for any help.
Cheers, Ben.
ltm policy policy-asm-someapp-uat-3 {
controls { asm forwarding }
requires { http }
rules {
default {
actions {
0 {
asm
enable
policy /Common/asm-someapp-uat
}
}
ordinal 3
}
poolselect-by-host-value {
actions {
0 {
forward
select
pool someappcaas-444.uat.somecorp.com
}
1 {
asm
enable
policy /Common/asm-someapp-uat
}
}
conditions {
0 {
http-host
host
values { someappcaas.uat.somecorp.com someapp.online.ecom.abc }
}
}
ordinal 2
}
redirect-to-home {
actions {
0 {
asm
disable
}
1 {
http-reply
response
redirect
location https://[HTTP::host]/home
}
}
conditions {
0 {
http-uri
values { / }
}
}
ordinal 1
}
}
strategy best-match
}