Hi 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