Forum Discussion
plavender_72604
May 13, 2010Nimbostratus
Hey All,
I've had a go at trying to put something together, could someone just give it a sanity check?
when HTTP_REQUEST {
Check host/uri (set to lowercase) switch "[string tolower [HTTP::host]]" {
"aaa.domain.com" {
Rewrite host/URI
HTTP::header replace Host "domain.com"
HTTP::uri "/aaa"
pool aaa_pool
}
"bbb.domain.com" {
Rewrite host/URI
HTTP::header replace Host "domain.com"
HTTP::uri "/bbb"
pool bbb_pool
}
}
}
Thanks again!
Peter