Forum Discussion

will_lee_113506's avatar
will_lee_113506
Icon for Nimbostratus rankNimbostratus
Jun 10, 2006

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

1 Reply

  • Hi Will,

    You can separate commands on a new line. For example:

    
    when HTTP_REQUEST {
       if { [HTTP::uri] starts_with "/ServletA" } {
          HTTP::uri "/ServletB?DocId=execute&U=A&P=B" 
          use pool NEW_SERVER_POOLb
       }
    }
    Aaron