will_lee_113506
Jun 10, 2006Nimbostratus
how to rewrite URL AND send to another pool
I've got an external partner that currently sends a HTTP POST to a existing VIP. I now need to rewrite their incoming URL (server code changed) so that it goes to a new server (in a different pool).
So far I have the following iRule that does the URL rewrite...but after I rewrite the URI can I have it send it to another pool? Is it as simple as an AND statement?
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/ServletA" } {
HTTP::uri "/ServletB?DocId=execute&U=A&P=B" AND use pool NEW_SERVER_POOLb
}
}
thx
Will