hello,
You should have an irule like that:
if {$host contains "app1"} {
condition
} elseif {$host contains "app2"} {
condition
} else {$host contains "app3"} {
condition
}
The else should not be conditional, so either use elseif again, or remove the condition in your else.
if {$host contains "app1"} {
condition
} elseif {$host contains "app2"} {
condition
} else {
condition
}
Similar problem:
https://devcentral.f5.com/questions/http_request-amp-if-elseif-else-statements
if my answer don't resolve your problem can you give me your irule in order to check it.
Regards