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
...
unRuleY_95363
Nov 19, 2004Historic F5 Account
I would also suggest using [string range ...] instead of the findstr as you already know that the uri starts with /search.
For example:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/search" } {
HTTP::uri [string range [HTTP::uri] 7 end]
pool search_pool
set rewrite_response 1
} else {
pool static_pool
set rewrite_response 0
}
}
when HTTP_RESPONSE {
if { $rewrite_response } {
rewrite the location header
}
}
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
