For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Ravi_Rajan_7549's avatar
Ravi_Rajan_7549
Icon for Nimbostratus rankNimbostratus
Mar 17, 2008

Redirection with Multiple pools

Hi,

 

 

I am not very experienced with irules and have few queries as below -

 

 

I have two pools ex. poola and poolb. Each pool has few servers like -

 

 

poola - server1, server2

 

poolb - server3, server4.

 

 

Server1 & Server2 -

 

These servers are hosting web applications with URI - /abc and /xyz

 

 

Server3 & Server4-

 

 

These servers are hosting web applications with URI /pqr and /def

 

 

Now i have a single virtual server and i need an irule which does something like this -

 

 

For each incoming request, the irule should check the URI and based on URI, it should use the appropriate pool.

 

 

For ex - In case URI is /abc, then the virtual server should poola and If URI is /def then the virtual server should use poolb.

 

 

TIA,

 

 

Regards,

 

Ravi

 

14 Replies

  • Now if only we F5 can get Boolean Shortcut method to work on iRULES, in theory it should be faster then switch arguements. :-)

     

     

    /CB

     

  • that would improve the analysis for sure but i'm afraid i didn't saw this in the roadmap of iRules (actually it was more some ideas to implement than a roadmap ^^)

     

     

    And i'm not sure we have a lots of request for such an implementation :'(
  • Thanks everyone, this is working fine. Now adding one more requirement to this -

     

     

    I have a different virtual server for HTTPS access. I want to have a datagroup list with selected set of applications which i need to redirect to the HTTPS virtual server. Can this be accomodated in the same irule ?

     

     

    TIA,

     

    Ravi