Forum Discussion
Ert_27713
Nimbostratus
May 22, 2008irule to redirect to pool - simple
I'm trying to complete a simple iRule to redirect to a pool based off the uri
Requirements:
Anyone going to hostname/UATDirectAccessEHR should go to the servers in the UAT pool.
Anyone else should go to Prod pool.
when HTTP_REQUEST {
if { [string tolower [HTTP::uri] ] starts_with "/UATDirectAccessEHR" } {
pool EHR_UAT_WEB
} else {
pool EHR_PROD_WEB
}
}
Each time I test, I get the servers in the prod pool.
http://hostname/UATDirectAccessEHR - goes to prod pool
Thanks
- Ert_27713
Nimbostratus
Excellent, that's worked.
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