Forum Discussion
Tom_Lauwereins_
Nimbostratus
Jun 15, 2011Redirect based on URI
Hi, I try to implement a simple iRule. Based on URI, traffic has to be redirected to different pools. when HTTP_REQUEST { if {[matchclass [HTTP::uri] starts_with "/...
Tom_Lauwereins_
Nimbostratus
Jun 15, 2011I have found the solution already
Not using "matchclass" solves the problem
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/ws/"}{
log local0. "1. Client [IP::client_addr]: client requested [HTTP::host][HTTP::uri]"
pool pool_A
}
else {
log local0. "2. Client [IP::client_addr]: client requested [HTTP::host][HTTP::uri]"
pool pool_B
}
}
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
