Forum Discussion

Fozail_183609's avatar
Fozail_183609
Icon for Nimbostratus rankNimbostratus
Feb 28, 2017

Need assistance is rewriting Host Name

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.

 

2 Replies

  • 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”.

     

    User supplies the user name and password, application does not accept the authentication on this URL “erp.xyz.com/../logon.aspx”. It seems on backend server it is configured to accept authentication on local URL only erp-app1.xyz.com/../logon.aspx or erp-app2.xyz.com/../logon.aspx.

     

    It is not allowed to make any changes on the actual back end server.

     

    Please suggest how to make it working. Awaiting for the response.

     

  • 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