Forum Discussion
F_Ibrahim_32340
Nimbostratus
Jul 05, 2017Need help building simple iRule
Hi Guys and Girls,
I need to create a simple iRule but sadly even simple is hard for me. The iRule should do the following:
If there is an http request which does not contain or equal bus...
Hectorm_262752
Cirrus
Jul 07, 2017here is the complete Irule. First make sure you set an variable with all lowercase of the path. Then compare the variable with the string in lower case.
when HTTP_REQUEST {
changing the path to lowercase
set Vpath [string tolower [HTTP::path]]
Path begins with "/business/portal.html"
if { $Vpath contains "/business/portal.html" } {
pool pool2
} else {
pool pool1
}
}
- cjuniorJul 07, 2017
Nacreous
Hi Hectorm,
I'm not sure if this code will cover all conditions needed, am I wrong?If there is an http request which does not contain or equal business/portal.html it should be forwarded to pool 1, all other extensions business/portal. (jpeg, gif, etc) should be forwarded to pool 2.
Respectfully
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