Forum Discussion
Richard_Kim_270
Nimbostratus
Aug 07, 2007my 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
}
}
}
- Richard_Kim_270
Nimbostratus
Nevermind I found the problem. I am an idiot - I had a typo in the default pool section.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects