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 11, 2008Absolutely... Please note that I did a Copy and paste and when I post I may lose the TAB formating.
Here is my Irule:
when HTTP_REQUEST {
log local0. "[IP::client_addr]:[TCP::client_port]:[HTTP::uri]"
if {[HTTP::uri] starts_with "/train" }{
if {([HTTP::uri] ends_with "/train") or ([HTTP::uri] ends_with "/train/")} {
HTTP::uri "/train/jsp/common/pgLogin.jsp"
}
pool train_pool
} elseif {[HTTP::uri] starts_with "/uat"}{
if {([HTTP::uri] ends_with "/uat") or ([HTTP::uri] ends_with "/uat/")}{
HTTP::uri "/uat/jsp/common/pgLogin.jsp"
}
pool uat_pool
} elseif {[HTTP::uri] starts_with "/uatpr"}{
if {([HTTP::uri] ends_with "/uatpr") or ([HTTP::uri] ends_with "/uatpr/")}{
HTTP::uri "/uatpr/jsp/common/pgLogin.jsp"
}
pool uatpr_pool
} elseif {[HTTP::uri] starts_with "/" }{
if {[HTTP::uri] ends_with "/"}{
HTTP::uri "/uat/jsp/common/pgLogin.jsp"
}
pool uat_pool
}
}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
