Solved
Forum Discussion
Yann_Desmarest
Cirrus
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
This is the iRule that I have mapped out, still does not work. :( any comments?
when HTTP_REQUEST { if { [HTTP::host] contains "externaldomain.com" } { set new_host [string map {externaldomain internaldomain} [HTTP::host]] set ips [lindex [RESOLV::lookup -a [$new_host]] 0] node $ips [TCP::local_port] } }