Forum Discussion
Ankur_Goel_2526
Nimbostratus
Apr 07, 2019Need i-rule to allow traffic for specifc URI
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 membe...
Lee_Sutcliffe
Nacreous
Apr 07, 2019Give this one a try
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"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects