Forum Discussion

Damien_Turner_1's avatar
Damien_Turner_1
Icon for Nimbostratus rankNimbostratus
Feb 04, 2010

So Simple it's stupid!

Hello all I was wondering if you could help me?

 

I'm quite new to iRules so only know the very basic's!

 

 

This is a very simple one and I'm ashamed with my self for posting it!

 

 

I need to redirect www.show-and-stay.co.uk/magazine to a different pool of servers, but all other traffic to stay on anther pool.

 

I've been looking at some of the other posts and have come up with this....

 

 

when HTTP_REQUEST {

 

 

switch [string tolower [HTTP::path]] {

 

equals ¨/magazine¨ {

 

pool Bloging_Server

 

}

 

default {

 

pool SEO_Pool

 

}

 

}

 

}

 

 

I may be barking up the wrong tree here.

 

 

The current setup is my web guys / girls use blog.show-and-stay.co.uk for blogging, but they don't want to use the subdomain any more and now want to use www.show-and-stay.co.uk/magazine they don't want to put word press on my main pool so hence the need to repoint magazine to the blog server so they want the pages to appear as they are still coming from www.show-and-stay.co.uk/magazine.

 

 

Please could someone help me, I'lm even offering a £20 amazon voucher to who ever can help me! (the powers that be are now screaming for it to work!)

 

 

Thank you

 

Damien
  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    If you're just looking for everything sent to /magazine* to go to a separate pool, you want something like:

     
     when HTTP_REQUEST { 
       if {[string tolower [HTTP::uri]] starts_with "/magazine" } { 
         pool Blogging_Server 
       } else {  
         pool SEO_Pool 
       } 
     } 
     

    HTH,

    Colin
  • Thank you so much Colin you are a star!, I was almost there on my first attempt but after looking in the forums had changed it to what I had posted.

     

    Is ther a good book I can get to help me with these so I don't have to lower the tone of the forum with simple requests like iRules for dummys or learn iRules in 21 days?

     

     

    Could you send me your mail address so I can send you your reward?, my address is damien.turner@holidayextras.com

     

     

    Once again that you for your help.