Forum Discussion

Richard_Kim_270's avatar
Richard_Kim_270
Icon for Nimbostratus rankNimbostratus
Aug 07, 2007

my iRule stopped working

 

 

Can anyone tell me what's wrong with my iRule? Basically it's suppose to default to the pool "vmapppool" unless the url contains /report/, /reports/, /admin/ or any of the strat/ urls. I am getting a page cannot be displayed when I try to connect. the nodes are up and running on all three pools and I can telnet on port 80 as well. When I remove this iRule the pools work fine. I'm stumped!

 

 

 

when CLIENT_ACCEPTED {

 

set vmapppool [LB::server pool]

 

}

 

when HTTP_REQUEST {

 

switch -glob [string tolower [HTTP::uri]] {

 

"*/report/*" -

 

"*/reports/*" -

 

"*/admin/*" {

 

pool vmqaapppool_reports

 

}

 

"*/strat/smartimaging/processrequest.aspx*" -

 

"*/strat/smartimaging/processrequest.aspx*" {

 

pool vmqaapppool_image

 

}

 

default {

 

pool $vmqaapppool

 

}

 

}

 

}
  • Nevermind I found the problem. I am an idiot - I had a typo in the default pool section.