Forum Discussion

dkraut_23236's avatar
dkraut_23236
Icon for Nimbostratus rankNimbostratus
Mar 16, 2009

Simple URL redirect?

I've read the irule samples, but they're not very intuitive. All I want to do is take a simple incoming internal url such as http://Alias and then redirect it to http://ActualServerName.internal.com:8102/blah/blah/TheEnd

 

I'd like the end user to only see http://Alias and not the internal server name/paths.

 

Is this easily done with an irule? If so, any guidance would be very much appreciated.

 

 

Thanks! Dave
  • James_Quinby_46's avatar
    James_Quinby_46
    Historic F5 Account
    Dave -

     

     

    What you're looking for is not so much a redirect as it is the ability to proxy a request for http://alias to http://ActualServerName.internal.com:8102/blah/blah/TheEnd without their knowledge. The good news is that there's an iRule to do this here:

     

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/ProxyPass.html

     

     

    The rule is a little long - jump past it to the description to see if this is what you're looking for functionally. If you're at all familiar with apache-style ProxyPass, it'll look familiar.

     

     

     

     

  • thanks jquinby, that looks like it will accomplish what I need, but my brain almost exploded while trying to decipher that irule! lol. I imagine that I only need a small portion of it along with a data group?