For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

adcounts's avatar
adcounts
Icon for Nimbostratus rankNimbostratus
May 27, 2016

iRule: URI Rewrite for request to node

I need help with an iRule. I need to have the URI change abc.domain1.com when sent to the VIP to xyz.domain2.com when the request is forwarded to the node. I am running version 11.5.3

 

1 Reply

  • Hi,

    If you just need to translate the uri on the request side, you can use the following irule

    in bigip v11.5+

    when HTTP_REQUEST {
        HTTP::host "xyz.domain2.com"
    }
    

    for older versions :

    when HTTP_REQUEST {
        HTTP::header replace "Host" "xyz.domain2.com"
    }