Forum Discussion
Adrian_P
Nimbostratus
Aug 21, 2013Add a prefix before sending the request to the Pool
Hi,
Scenario :
A single VS (3.3.3.3) with two different Pool based on the URI prefix :
Pool A: the member web server 1.1.1.1 is configured on a Virtual Directory /web
Pool B: the ...
Anthony_Graber
Employee
Aug 21, 2013when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/reports"}{
pool pool_b
} else {
HTTP::uri /web[HTTP::uri]
pool pool_a
}
}
OR
when HTTP_REQUEST {
if {[string tolower [HTTP::uri]] starts_with "/reports"}{
pool pool_b
} else {
HTTP::uri /web[HTTP::uri]
pool pool_a
}
}
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