I was playing with the ProxyPass rule initially because of the debug capabilities. A stripped down rule to perform what I am attempting is below. I am trying to modify the hostnames in URLs.
when HTTP_RESPONSE {
if { [HTTP::header exists "Accept-Encoding"] } {
HTTP::header remove "Accept-Encoding"
log local0. "$log_prefix: Removed Accept-Encoding header"
Disable the stream filter by default
STREAM::disable
Check if response type is text
if {[HTTP::header value Content-Type] contains "text"}{
Match any http:// instance and replace it with nothing
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]"
}