Forum Discussion
Brandon_High_10
Nimbostratus
Nov 17, 2004HTTP request rewriting
I want to use the BigIP to do something equivalent to apache's:
ProxyPass http://search.foo.com
ProxyPassReverse http://search.foo.com
...
Nov 19, 2004
One way of accomplishing this is to store the target pool in a local variable and check that on the response.
when HTTP_REQUEST {
if { [ HTTP::uri ] starts_with "/search" } {
HTTP::uri [ findstr [HTTP::uri] "/search" 7 ]
pool search_pool
set target_pool "search_pool"
}
else {
pool static_pool
set target_pool "static_pool"
}
}
and the psuedo-code for the response would be:
when HTTP_RESPONSE {
if { $target_pool == "search_pool" } {
rewrite the location header
}
}
-Joe
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
