Forum Discussion
taimoor_89941
Nimbostratus
May 29, 2008Need to route a URI to particular pool
Hi there
I have the following requirement and I know its achiveable on bigIP but I am not sure how to go about it. Basically, we want to use it as an intelligent router. we got a website www.abc.net/abc which is running on a webserver. What we want to do is to copy this website on a new server with minor changes, use big-ip so that www.abc.net/abc goes to the original server and www.abc.net/xyz goes to the new webserver.
Any help would be highly appreciated.
Kind regards
- Don_MacVittie_1Historic F5 AccountHi Taimoor,
- This should do the trick. Put your old server in pool1 and new server in pool2.
when HTTP_REQUEST { switch -glob [HTTP::uri] { "/abc*" { pool pool1 } "/xyz*" { pool pool2 } } }
- taimoor_89941
Nimbostratus
Thanks a lot guys for your prompt replies. - taimoor_89941
Nimbostratus
Hi Guys - hoolio
Cirrostratus
The rule will be evaluated. If a URI starts with /abc, pool1 will be used. If a URI starts with /xyz, pool2 will be used. If the URI doesn't match either option, the VIP's default pool will be used. You could also specify the default pool using:switch -glob [HTTP::uri] { ... default { pool pool3 }
- taimoor_89941
Nimbostratus
Hi Aaron - hoolio
Cirrostratus
Can you post your VIP and HTTP profile settings? You can get this from the command line by running: - taimoor_89941
Nimbostratus
Here are the settings as requested. - hoolio
Cirrostratus
Which HTTP profile were you using when the traffic failed? Does it now fail 100% when you test with the HTTP profile enabled? - taimoor_89941
Nimbostratus
Hi Aaron
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