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

abi1980_184094's avatar
abi1980_184094
Icon for Nimbostratus rankNimbostratus
Oct 08, 2015

Irule

I have requirement

 

we have a production url which is on an X server . There is also an UAT url which also hosted on the same X server

 

I have an requirement if i am using the UAT url from outside it should open the UAT page without the production URL being impacted this should be transperent to the external users as when they type in the Production URL it should directly take them there

 

Please advice

 

4 Replies

  • Please provide more information. Are they different sites on the same server? Different host header name? Your question is a little vague. Almost sounds like no iRule is needed.
  • thanks for your reply Brad Here i an eg which would give a clear picture So i have my production url say www.aaa.com which are being used by external clients and i have pool with servers say node A and node B which serves those requests Now i have another UAT URL www .test.com which will be used for testing purpose using the same VIP hosted on Node A and Node B So whenever i try to access www.test.com from outside it will hit the same VIP which also serves for my production by when i type this URL it should take to www.test.com
  • Hi,

     

    is rewriting configured on the virtual server?

     

    if both URL www.a.com and www.test.com are on the same nodes, the default behavior of F5 is to send request without changing Host Header.

     

    The server may respond with content based on the Host Header matching virtual Hosts in HTTP service configuration.

     

  • Host A and Host B are configured to accept requests for www.abc.com and www.test.com

     

    In the Web service (IIS, Apache, ...) you have define both "virtual Hosts" and answer with different content based on it.

     

    • If you request the VS with Host the Host Header may stay unchanged on the server side request. the server will answer with abc content
    • If you request the VS with Host the Host Header may stay unchanged on the server side request. the server will answer with test content

    But if you configured a irule / HTTP Class / Local Traffic Policy to rewrite Host for abc URL, you must change it to manage the new hostname.

     

    If this does not help you, please add the VS configuration in your next answer. (anonymize it by replacing IPs and Host names)