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
...
Brandon_High_10
Nimbostratus
Nov 19, 2004I've got it half way workign by rewriting the HTTP::uri before sending the request to the pool, but I still need to rewrite the response from the server.
What I haven't figured out is: I only want to rewrite the responses from the pool that contains the search devices.
For the request, the code would be:
when HTTP_REQUEST {
if { [ HTTP::uri ] starts_with "/search" } {
HTTP::uri [ findstr [HTTP::uri] "/search" 7 ]
pool search_pool
}
pool static_pool
}
and the psuedo-code for the response would be:
when HTTP_RESPONSE {
if { response comes from pool search_pool } {
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
