Nacho_de_Aguina
Oct 19, 2007Nimbostratus
Redirect depending 2nd level
Hello
I would like to redirect http requests to a pool depending on the second level URI
Let me explain myself
http://www.mycompany.com/finances/dev
Depending on dev in this case it should be send to a pool1
I try this irule first part(which affects to the first level) works fine but the second part it doenst works
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]
if { $uri starts_with "/tics"
or $uri starts_with "/customer"
or $uri contains "jdbc"
}
{
pool pool_www
} elseif { $uri starts_with "/finances/dev" } {
pool pool_dev
} else {
HTTP::redirect "http://www.f5.com/"
}
}
Does anybody knows what im doing wrong?
The Server replies to http://local_IP/finances/dev
Thanks in advance
Nacho de Aguinaga