Forum Discussion

Puli's avatar
Puli
Icon for Nimbostratus rankNimbostratus
Sep 14, 2011

Send request to a vip on Differrent LTM based on URI

We have two BigIP in each datacenter.

 

eg:

 

vs_example_adc

 

vs_example_rmdc

 

 

My question is

 

Using an iRule , configured to cs_example_Adc , for example

 

If {[HTTP::URI] start_with "/temp"} {

 

 

send request to vs_example_rmdc

 

 

is this possible in an iRule.

 

 

can you please give me some sample code if at all its possible.

 

 

thanks.

 

puli.

 

1 Reply

  • Hi Puli,

    Sure you can do that. You would treat the Virtual Server on the second LTM as a regular node or put the other LTM Virtual Server IP Address into a Pool and route the traffic to that pool (I would suggest the Pool method).

    Something like this:

     
    when HTTP_REQUEST {
    if { [string tolower [HTTP::uri]] starts_with "/temp" } {
    Send to a specific IP Address / Node
    node 10.10.10.10
    Send to a Pool that has the LTM IP Address in it.
    pool pool.with.ltm.virtual.server.ip.address
    }
    }