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 30, 2004Historic F5 Account
Try this modification to take care of your empty string problem:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/search" } {
set new_uri [string range [HTTP::uri] 7 end]
if { not $new_uri starts_with "/" } {
set new_uri "/$new_uri"
}
HTTP::uri $new_uri
pool search_pool
set rewrite_response 1
} else {
pool static_pool
set rewrite_response 0
}
}
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
