I am trying to deploy ERP application through F5, have two back end server. Each server has local host name “erp-app1.xyz.com” and “erp-app2.xyz.com” respectively. User should access ERP by name “erp.xyz.com”.
Configured VIP “10.10.10.10” on F5 and called pool (which has two actual ERP server configured). Added a host file entry on the test machine “erp.xyz.com” >>>> “10.10.10.10”. User attempts to access “erp.xyz.com”, request lands on F5. F5 forwards the request to APP1 server (as per LB method). APP1 responds with “erp-app1.xyz.com/../logon.aspx”, user could see in the browser that host name got changed.
Added an stream profile to change @erp-app1.xyz.com@erp.xyz.com@@erp-app2.xyz.com@erp.xyz.com@, user attempted to access and stream profile changed the response, now user can see in the browser same host name “erp.xyz.com/../logon.aspx”.
Instead of stream profile, try using a http profile with Redirect Rewrite enabled. It seems that your backend server issues a redirect upon first request and F5 does not alter the redirect location by default