Forum Discussion
Kevin_Stewart
Jul 23, 2014Employee
You'll want to use either the HTTP_REQUEST_SEND or HTTP_REQUEST_RELEASE events, as these are triggered after the load balancing decision. Here's an example:
when HTTP_REQUEST_RELEASE {
switch [LB::server addr] {
"10.70.0.1" {
HTTP::header replace Host "server1.internal.local"
}
"10.70.0.2" {
HTTP::header replace Host "server2.internal.local"
}
}
}