Need irule to pass traffic to pool member if HTTP request comes for . But if URI value is different with above URL then traffic should block and user should receive Error - 404. Also, if pool members are down then user should receive Error - 505.
when HTTP_REQUEST {
if {[active_members myPool] > 0} {
if {!([HTTP::uri] equals "/abc")} {
HTTP::respond 404 content "my 404 error message"
}
} else {
myPool has no active members
HTTP::respond 505 content "my 505 error message"
}
}