Forum Discussion
Shivesh_Rege
Nimbostratus
Jun 02, 2009irule causing loop.
Hi Friends,
I am facing an issue with an irule going into loop.Could someone help me resolving it.
when LB_FAILED {
if{[active_members [LB::server]]<1}
HT...
Jun 04, 2009
Here's a rewritten version of the iRule that might be more easier to manage:
when LB_FAILED {
if{[active_members [LB::server pool ]] < 1 } {
HTTP::redirect "http://www.google.com"
}
}
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"*/doc" -
"*/minisite" -
"*/fslink" -
"*/ms" -
"*/link" -
"*/null-request" -
"*/exttracking.dyn" -
"*/ms_1020109.html" {
HTTP::redirect "http://[HTTP::host]/ecom/pages/nm/nmhomepage.jsp"
}
"/" {
switch [string tolower [HTTP::host]] {
"www.abcd.com" -
"www1.abcd.com" {
HTTP::redirect "http://[HTTP::host]/ecom/pages/nm/nmhomepage.jsp"
}
"www.joinabcd.com" -
"www1.join.abcd.com" {
HTTP::redirect "http://[HTTP::host]/ecom/pages/nm/join.jsp"
}
}
}
}
}
-Joe
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
