Forum Discussion
a_pavlov_114144
Cirrus
You should assign something like the following iRule to your virtual server:
when HTTP_REQUEST {
if { [HTTP::uri] contains "services" } {
HTTP::redirect "/wps/portal"
pool SERVICE_POOL
}
elseif { [HTTP::uri] contains "oservices" } {
HTTP::redirect "/wps/portal"
pool OSERVICE_POOL
}
}
a_pavlov_114144
Apr 10, 2014Cirrus
You can add some logging to your irule to make sure that conditions in if statement work fine. And then look in /var/log/ltm for your messages.
Like this:
when HTTP_REQUEST {
log local0. "URI = [HTTP::uri]"
if { [HTTP::uri] contains "services" } {
HTTP::redirect "/wps/portal"
pool SERVICE_POOL
log local0. "SERVICE POOL"
}
elseif { [HTTP::uri] contains "oservices" } {
HTTP::redirect "/wps/portal"
pool OSERVICE_POOL
log local0. "OSERVICE_POOL"
}
}