Forum Discussion
bmohanak_276891
Oct 24, 2016Cirrus
Help with an iRule to allow based on two URIs
Dear Friends,
I need help with an iRule to allow access to a Pool based on two URIs and send a 403 Access Denied otherwise
So Initially I had this for one URI's but the application owner wa...
- Oct 25, 2016
Yep, "Starts_with" worked. Many Thanks to ekaleido and Odaah!!!
Vijay_E
Oct 24, 2016Cirrus
Try something like this after replacing the URI, pool and 403 response as required:
when HTTP_REQUEST {
if { ([string tolower[HTTP::uri]] eq "/abcd") or ([string tolower[HTTP::uri]] eq "/xyz") } {
pool POOL_URI
} else {
HTTP::respond 403 content {403 Unauthorized}
}
}
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