Forum Discussion
Jun 20, 2014
Hi!
If I understood your scenario correctly, you can use active_members for this. Try this one (not checked for syntax):
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"
pool your_error_pool
}
}
/Patrik