Forum Discussion

Eireann78_19953's avatar
Eireann78_19953
Icon for Nimbostratus rankNimbostratus
Sep 06, 2008

Use F5 for mass URI rewrites

Hey,

 

We currently use Apache to do multiple re-writes on our website.

 

With a new launch coming up and a pair of BIG-IP 6400s installed with web accelerator licenses on the way we are pushing as much functionality as possible to to the F5s.

 

I am a bit of an iRule novice but I have looked through this forum and seen many rewrite examples so I know the F5 can do this quite easily.

 

 

Some questions I have are do people use this currently to re-write uri's which may be in the 100s and in a state of constant flux depending on business needs.

 

 

Is it best to do this using a standard iRule or using the http class command and the rewrite tab on this.

 

 

I have tested the http class method and found it easy to configure but not sure how scalable it is?

 

 

Eventually I would like to hand this functionality over to the developers and let them take care of it via icontrol but it's on my desk at the moment.

 

 

Any advice/past experience/configurations would be greatly appreciated. I am an IP guy so it's a bit of a crash course for me

 

 

Tks

 

E.

1 Reply

  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    Hi there,

     

     

    For a large number of rewrites, it would be most efficient to use a datagroup (called a class in the bigip.conf) and reference the class in an iRule. This allows you to separate the configuration of the rewriting from the iRule which performs the rewrites. If you want to give developers control over the configuration, but not the iRule, you could create a separate program or web application which uses iControl (a management API into the LTM) to change the datagroup contents.

     

     

    The iRule would be fairly straightforward. You could use the findclass command (Click here) to look up the requested URI and get the rewrite target. There are a lot of examples in this forum to get started. If you have any questions/issues there are plenty of people here who can help.

     

     

    Aaron