Forum Discussion
Gregt_33960
Nimbostratus
Jun 11, 2008IRule send to wrong Pool and Port
Hello,
I am hoping this is going to be an easy fix. I have several web server instances over various ports on a web server and the IRule, using URI filters, was working fine, until I ne...
Gregt_33960
Nimbostratus
Jun 12, 2008CB,
Thank you for the input. I may try the Virtual server idea.... Here is what I have right now that seems to be working, but I suspect it is not very good logic. I added the default pool statement and third switch statement.
switch -glob [HTTP::uri] {
"*/sandbox*" { pool state_sandbox_pool }
"*/pilot*" { pool state_pilot_pool }
"*/whatif*" { pool state_whatif_pool }
"*/intgtst*" { pool cnsi_int_pool }
"*/uatpr*" { pool state_uatpr_pool }
"*/uat*" { pool state_uat_pool }
"*/train*" { pool state_train_pool }
default { pool state_uat_pool }
}
now re-write the URI's when necessary
a "-" means to execute the same body as the next condition
The only diff betw the 2 strings is whether the leading '/" needs to be included
switch -glob [HTTP::uri] {
"*/sandbox/" -
"*/pilot/" -
"*/whatif/" -
"*/intgtst/" -
"*/uatpr/" -
"*/uat/" -
"*/train/" { HTTP::uri "[HTTP::uri]jsp/common/pgLogin.jsp" }
"*/sandbox" -
"*/pilot" -
"*/whatif" -
"*/intgtst" -
"*/uatpr" -
"*/uat" -
"*/train" { HTTP::uri "[HTTP::uri]/jsp/common/pgLogin.jsp" }
}
if {[HTTP::uri] equals "/" }{
HTTP::uri "/uat/jsp/common/pgLogin.jsp"
}
}
}
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
