F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

Ert_27713's avatar
Ert_27713
Icon for Nimbostratus rankNimbostratus
May 22, 2008

irule 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

 

1 Reply