Forum Discussion

Sakthi_110969's avatar
Sakthi_110969
Icon for Nimbostratus rankNimbostratus
Dec 30, 2012

Not to Load Balance

Hi there,

 

Here is my situation.

 

I have two web servers which are load balanced, VIP Is configured, and all works fine.

 

URL for Example. .. abc.xyz.com

 

Now, I have a scenario wherein i dont want to do load balance but all the request should go to a specific server when any users hits url abc.xyz.com/1234.

 

I can do this uring http profile but just curious to know how to write a iRule for this.

 

Appreciate the help

 

Cheerz..

 

1 Reply

  • iRule will be something like the one below.

     

     

    when HTTP_REQUEST {

     

    switch -glob [HTTP::path] {

     

    "*/abc.xyz.com/*" -

     

    "*[0-9][0-9][0-9][0-9].aspx*" {pool abcd.com member 1.2.3.4 80 }

     

    default {pool abcd.com}

     

    }

     

    }