Forum Discussion
Don_22992
Nimbostratus
Nov 13, 2008Changing host name to web servers
Currently, I have a virtual server that responds to www.mysite.com/blah. I want to be able to create a second for www.testsite.com/blah.
When the user accesses www.testsite.com, interna...
hoolio
Cirrostratus
Nov 14, 2008Also, 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
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