Also, you could change the stream rule a bit to fix a couple of potential issues:
1. You might want to rewrite response content if the response type is text-based--not a 200.
2. You should set the stream expression before enabling the stream filter as noted in SOL8207 (
Click here). If you're running 9.4.2 or later, you'll get a TCL error in the HTTP_RESPONSE event using enable then setting the expression.
when HTTP_RESPONSE {
if {[HTTP::header value "Content-Type"] starts_with "text"}{
STREAM::expression "@www.testsite.com@www.mysite.com@"
STREAM::enable
}
}
Also, if the web server is using compression, LTM won't uncompress the responses and the stream profile won't match. You could either disable compression on the web server or set the Accept-Encoding header in requests to a null value.
If you try these changes and still see issues when trying to access the application, try using a browser plugin to view the response headers and content like Fiddler for IE or HttpFox for FF. This should give you an indication as to where the problem is occurring. As Joe suggested, debug logging would also help.
Aaron