Can you remove the Accept-Encoding header from the requests? This prevents the server from sending compressed responses. And do you really want the client to make a request to the test VS on port 8020?
when HTTP_REQUEST {
if { [HTTP::header exists "Accept-Encoding"] } {
HTTP::header remove "Accept-Encoding"
log local0. "$log_prefix: Removed Accept-Encoding header"
}
}
when HTTP_RESPONSE {
Disable the stream filter by default
STREAM::disable
Check if response type is text
if {[HTTP::header value Content-Type] contains "text"}{
Set the replacement string
STREAM::expression {@URL=http://qj1cen00\.na\.\.net:8020/@URL=http://testvip..net:8020/@}
Enable the stream filter for this response only
STREAM::enable
}
}
when STREAM_MATCHED {
log local0. "Stream matched [STREAM::match]"
}
Aaron