Forum Discussion
Jun 20, 2014
Hi!
Sorry mate, I understood it as you had another pool for the error pages.
If you have the same pool I'd disable the priority group activation and use an iRule like this one instead (omit the pool command if the default pool is the one you intend to use):
when HTTP_REQUEST {
if { [active_members http_pool] >= 2 } {
if { [HTTP::host] equals "example.com" and ( [HTTP::uri] equals "/" or [HTTP::uri] equals "/example-client" or [HTTP::uri] equals "/example-client//" ) } {
HTTP::redirect "https://example.com/example-client/login"
}
} else {
HTTP::uri "/errorpage"
}
}
Does that make sense?
/Patrik