Forum Discussion
ST_Wong
Cirrus
Jul 20, 2015Please help: "Pool" in iRule breaks AJAX scripts?
Hi, We use following simple irules for pool selection: ------------ cut here ---------
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/psreports/" } {
log local0. "Debug: using thrs...
Seth_Cooper
Employee
Jul 20, 2015Hi ST Wong,
Your best bet is to have your developers debug the site and see if the requests are getting the correct responses. If not then you have an issue with your iRule sending you to the wrong pool.
You might also try to add an "else" to your if statement and see if that helps.
------------ cut here ---------
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/psreports/" } {
log local0. "Debug: using thrsit_psreports"
pool hrsit_b_pool
} else {
pool default_pool_name
}
}
------------ cut here ---------
Hope this helps!
Seth
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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