Forum Discussion
nitass
Dec 09, 2011Employee
never mind. forward command is not needed in your configuration.
by the way, can you try to also check active members in HTTP_REQUEST?
e.g.
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
"www.facebook.com" -
"www.google.com" -
"www.yahoo.com" {
pool captured_lasthop
}
default {
if {[active_members [LB::server pool]] > 0} {
log local0. "Client IP address is: [IP::remote_addr]"
HTTP::header replace Host "www.example.com"
log local0. "Replacing Host"
HTTP::uri "/example/login.html"
log local0. "Replacing URI"
}
}
}
}