Forum Discussion
http_response rewrite per pool on Virtual Server
Hi i'm settibng up a portal on a virtual server with multiple server pools as destinations for multiple applications The portal site contains the portal part and application part which is selected by the URI part in the request
when HTTP_REQUEST {
if { [HTTP::uri] contains "app1" }{
HTTP::uri [string map {"/app1/" "/"} [HTTP::uri]]
pool Pool_Portal_app1
}
if { [HTTP::uri] contains "app2"}{
HTTP::uri [string map {"/app2/" "/"} [HTTP::uri]]
pool Pool_Portal_app2
}
if { [HTTP::uri] contains "app3"}{
HTTP::uri [string map {"/app3/" "/"} [HTTP::uri]]
pool Pool_portal_app3
}
}
but the response in the content uri losses the /app part in the uri
how can this be accomplished ?
2 Replies
- Josiah_39459Historic F5 Account
If you want the app part back, you can insert it back into the uri in the HTTP_RESPONSE event.
Otherwise, it seems like HTTP Class may be more what you are looking for?
- Ronny_Vanbroec1
Nimbostratus
Well i'v tried the first option but get command is not valid in current event context (HTTP_RESPONSE)][HTTP::uri "HTTP Class" is not clear to me where are they at ? Looking in to this but any pointers are welcome .... seems no longer availlable in 11.4
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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