Forum Discussion
draco
Nimbostratus
Mar 23, 2017redirect to a pool for multiple uri
I have multiple sites and each site uses multiple uri's , so i need to redirect to a particular pool based on the uri's .Like if its /index.html or /benefits or /analytics -> it should direct the tra...
kunjan
Nimbostratus
Mar 23, 2017Yes, you can do that provided the logic is correct
when HTTP_REQUEST {
log local0. "BI request received"
if { [HTTP::path] equals "/index.html" || [HTTP::path] equals "/benefits" || [HTTP::path] equals "analytics" || [HTTP::path] equals "/bicomposer" } {
log local0. "BI request for BI service received. Selecting end server"
pool OHS_BI_9797
log local0. "BI end server selected: [IP::server_addr]"
} elseif { [HTTP::path] equals "xxx" } {
pool XXXXX
}
}
Jinshu
Cirrus
Mar 28, 2017It would be easy to read if you can format (select the irule and Ctrl+K) this irule, Divya.
-Jinshu
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