Forum Discussion

Vijay_Krishnan_'s avatar
Vijay_Krishnan_
Icon for Nimbostratus rankNimbostratus
Sep 21, 2010

HTTP Response Redirection

Hi Guys,

 

 

I need to create an iRule which helps to redirect HTTP Request and also HTTP Response.

 

 

Scenario

 

Incoming request HTTPS://externalxyz.com/dev03 needs to be redirected to HTTPS://internalxyz.com/sso and on the way back I could like the HTTP response to go back as HTTPS://externalxyz.com/dev03 as no one outside our network can resolve to internalxyz. I need to setup multiple entries redirecting various external URLs to Internal ones.

 

 

What I have tried so far

 

I have used the ProxyPass rule which works fine but I can only redirect it to a pool and not to an URL/URI and the HTTP Response seems to go back to the external clients with internal URLs

 

 

I am trying to do this for Oracle SSO. Could any of you help me in the right direction.

 

Thanks in advance for your help.

 

1 Reply

  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus
    ProxyPass iRule works fine for this. If your datagroup is setup correctly, then your internal URL will be re-written as the external URL. If it's not working, check that the entries in the DG are correct. There's additional debugging flags you can set in it too if required. Especially look around the streams setup for the re-writing.

     

     

    H