Forum Discussion

bruno_an_170742's avatar
bruno_an_170742
Icon for Nimbostratus rankNimbostratus
Sep 18, 2014

IRULES - URi Rewriting

Hi all !

 

We would like to use URL rewriting throught iRules with our BIGIP. I saw many topics about the subject, but I couldn't find what I was looking for.

 

The client will request : http://doc.test.com/base/id This VS has to be load balanced to :

 

http://doc1.test.com:8080/anotherbase/id & http://doc2.test.com:8080/anotherbase/id

 

So, the host will be changed, I guess throught the Pool configuration associated to the VS. And then the first part of the URi: "base" to "anotherbase". How can I keep the "id" part unchanged ?

 

Thanks a lot !

 

Regards,

 

Bruno

 

3 Replies

  • is this just rewritten on the back end, or should these changes be visible to the clients as well?
  • Arie's avatar
    Arie
    Icon for Altostratus rankAltostratus

    On the back-end, are you able to access the resource without specifying the host? If you can you will not have to worry about the host and you can simply use the HTTP::uri command. You'll still have to manipulate the path and translate the port, of course.