Solved
Forum Discussion
Yann_Desmarest_
Nacreous
Hi,
Maybe the following irule may help you :
when HTTP_REQUEST {
if { [HTTP::host] contains "xyz.externaldomain.com" } {
HTTP::header replace Host "xyz.internaldomain.com"
}
}
You may also use
string map
command to make the replacement more dynamicN_67263
Aug 28, 2017Nimbostratus
hey Yann....thanks a ton. I think the logic should work. However, we would like to use the new domain to do a lookup and what ever is the IP returned use that IP address in the node to forward the traffic.
Let me work on some extension of iRule with the logic you provided