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, internally I need the host to be www.mysite.com without reconfiguring the application servers. In other words, the client sees www.testsite.com while the web servers see www.mysite.com.
4 Replies
- Don_22992
Nimbostratus
If I use the technique of replacing the host name, as in - Don_22992
Nimbostratus
tried creating a streams profile and also used streams in an iRule as I found on DevCentral. Still having issues before and I thought I had it! - Have you included some logging to make sure the iRule is being processed for each client request? If you are issuing a header replace and the header is not getting replaced then it sounds like you've found a bug. Do you have rechunking enabled in your HTTP profile? If not, you might want to try to give that a shot.
- hoolio
Cirrostratus
Also, you could change the stream rule a bit to fix a couple of potential issues:when HTTP_RESPONSE { if {[HTTP::header value "Content-Type"] starts_with "text"}{ STREAM::expression "@www.testsite.com@www.mysite.com@" STREAM::enable } }
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