Forum Discussion

sloehandman's avatar
sloehandman
Icon for Nimbostratus rankNimbostratus
Aug 28, 2015

Redirect to pool member or pool based on string

Irule idiot here!

 

I have the need to use pool member 1 on port 9445 if the header contains "PerformanceAdmin". If it does not, use pool member 2 on port 9444. I don't know if I should use a seperate pool or have both in the same pool or if it makes a difference.

 

when HTTP_REQUEST {

 

if ? { pool abc_pool } else { pool ghi_pool } }

 

?????Any help appreciated.

 

1 Reply

  • if { [HTTP::header values "User-Agent"] contains "IE" } {
            log local0.error "Got if"
    } else {
            log local0.error "Got else"
    }
    

    cheers.