Forum Discussion
Gregt_33960
Jun 11, 2008Nimbostratus
Absolutely... 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
}
}