Forum Discussion
Craig_17655
Nimbostratus
Aug 14, 2009iRule for Redirrecting based upon URI
I am trying to replace some apache functionality using iRules. I have the following rules set up in apache:
SetHandler matrix
SetCluster imgser...
The_Bhattman
Nimbostratus
Aug 15, 2009Hi,
You could also write it like the following:
when HTTP_REQUEST {
if { [HTTP::uri] contains ".img" } {
pool testpool2
} else {
pool testpool
}
}
or
when HTTP_REQUEST
if {([HTTP::host] eq "www.yourdomain.com") and ( [HTTP::uri] contains ".img" ) } {
pool testpool2
} else {
pool testpool
}
}
Click here to see how you can change the 2 operators to suit your needs
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