Forum Discussion
DaleLeBlanc_140
Nimbostratus
Mar 29, 2016URI transformation
I would like to have iRule select a pool and transform the URI similar to shown below:
Client enters:
https://www.test.com/alpha
For communication between LTM and server, I need the URI...
Samir_Jha_52506
Noctilucent
Mar 30, 2016Hi Dale,
Make sure you apply Stream profile on VIP before applying below iRule.
when HTTP_REQUEST {
HTTP::header remove Accept-Encoding
STREAM::disable
}
when HTTP_RESPONSE {
Disable the stream filter for server responses
STREAM::disable
Enable the stream filter for text responses only
if {[HTTP::header value Content-Type] contains "text"}{
Replace 'old_text' with 'new_text'
STREAM::expression {@https://nodeip/random/deep/level/directory/structure@https://www.test.com/alpha@}
Enable the stream filter for this response only
STREAM::enable
}
}
For reference please visit this link
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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