Forum Discussion
Jun 20, 2014
Hi
Yeah, you're right. If you don't want to use the node command and want to keep the priority groups you'd be better off checking the individual members. Try this:
when HTTP_REQUEST {
if { [LB::status pool http_pool member 10.0.0.1 8003] eq "up" or [LB::status pool http_pool member 10.0.0.2 8003] eq "up" } {
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" }
}
/Patrik