Forum Discussion
hooleylist
May 11, 2010Cirrostratus
That 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