Forum Discussion
How do I make an iRule that has a Context that needs to be rewritten before forwarded to a pool ?
This worked almost perfectly :)
when HTTP_REQUEST {
if { [HTTP::uri] contains "/streaming/node1" } {
HTTP::uri "/external"
pool pool1_http
} elseif { [HTTP::uri] contains "/streaming/node2" } {
HTTP::uri "/external"
pool pool2_http
} else {
pool pool_http
}
}
One detail IF I have something after /streaming/node1/xxxxxxxxx/yyyyyy that I like to keep and its just
the /streaming/nodex/ that i like to substitute with the /external/ and still keep the string that follows after is that possible to do ?
//Peter
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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