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