Forum Discussion

Jose_Cruz_23726's avatar
Jose_Cruz_23726
Icon for Nimbostratus rankNimbostratus
Apr 18, 2018

iRule to rewrite url in server response to client

I have a simple VS with 1 pool member, when the user goes to the URL (https://myurl.com) they are redirected to the full path (https://myurl.com/uri/login.jsp) just fine and are presented with a login prompt. After the enter their credentials and click the login button the server replies with the FQDN of the server ().

 

I have tried to modify the following irule to try to fit my need and while it does change the URL from the server name to the correct URL it does not work.

 

Original iRule:

 

Modified iRule:

 

So then i found another simpler (seemed) but this ones did not change the URL at all

 

Can anyone tell me what i am doing wrong or suggest a better way of doing this?

 

On a normal day i would tell them to change the server response (because i can see on my capture the server is sending the re-direct) but we are on a tight deadline and i need to find a workaround before Friday.

 

  • JG's avatar
    JG
    Icon for Cumulonimbus rankCumulonimbus

    It might be quicker to just fix the backend, actually.

     

    The shorter irule does not make sense, as "Host:" is a request header.

     

    Any details as to how it does not work?