Forum Discussion
Tom_Lauwereins_
Jun 15, 2011Nimbostratus
Redirect 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_
Jun 15, 2011Nimbostratus
I 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
}
}
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