Forum Discussion
hooleylist
Dec 04, 2009Cirrostratus
You can use HTTP::respond (Click here) to send an HTTP response from an iRule. You could also use a switch statement to check the URI:
when HTTP_REQUEST {
Check the requested URI
switch -glob [HTTP::uri] {
"*/offAssoc/*" -
"*/ops-context-root/*" -
"*/vsserv-context-root/*" {
pool pool-pool1
}
"*/AVAMService/*" {
pool pool-pool2
}
"*/adsvc/*" {
pool pool-pool3
}
"*/provision/provisioningservice*" -
"*/profile/profileservice*" -
"*/logon/logonservice*" -
"*/module/enrichmentservice*"
"*/initialuser/createinitialuserservice*" -
"*/batchCustomer/BatchCustomerService*" {
pool pool-pool4
}
default {
HTTP::respond 404 content {Page Not FoundPage Not Found}
}
}
}
Aaron