Forum Discussion
Mic_108850
Altostratus
May 10, 2010host header presented to origin server
Hello,
I have one server (x.x.x.x) in a "pool1"
i'm using a virtual server "VS1" calling this "pool1"
i created a web_app and a class_profile attache to the VS1.
the orig...
hoolio
Cirrostratus
May 11, 2010That should work to rewrite the Host header based on what the client requested. You could also use a switch statement:
when HTTP_REQUEST {
switch [string tolower [HTTP::header "Host"]] {
"game1.domain.com" {
HTTP::header replace Host org-game1.domain.com
}
"game2.domain.com" {
HTTP::header replace Host org-game2.domain.com
}
}
}
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
