Forum Discussion
Damien_Turner_1
Nimbostratus
Feb 04, 2010So 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_12Historic F5 AccountIf 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 } }
- Damien_Turner_1
Nimbostratus
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.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects