Forum Discussion
CraigM_17826
Altocumulus
Feb 17, 2010iRules and HTTP classes
Just a quick one,
Are iRules processed before HTTP classes? I have a situation where I am migrating a lot of iRule based redirects/pools to HTTP classes but I have one situation where o...
CraigM_17826
Altocumulus
Feb 18, 2010Hi Aaron,
Here's the code. At the moment it basically just checks for the status of the pool members to see if at least one of them is up and if so directs the traffic there. If no pool members are avaiable then it directs to an alternate pool whose members are responsible for displaying error page.
I will be changing the failed confition pool to a either a redirect or uri rewrite since they have created a new error message page within our web apoplication (WebSphere). Originally they intended to host it on a seperate IIS server.
if { [string tolower [HTTP::uri]] contains "/new-services/" } {
if { [active_members "New-Services"] > 0 } {
pool "new-services"
return
} else {
pool "new-services-down"
return
}
}
I just couldn't see how I could replicate this with HTTP classes.
Craig
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