Forum Discussion
alexander_3382
Nimbostratus
Nov 25, 2008simple redirect
Hello all,
I know this is a simple question but I'm new to F5 and need to get this done relatively quickly. We use an F5 switch for load balancing an application. It's sitting in front of two...
hoolio
Cirrostratus
Nov 25, 2008If you want to send requests for newapp.xxx.edu to one server (or set of servers) and all other requests to another set of servers, you could create two pools (one for the new app and one for all other requests) and then use an iRule to route the requests by the host header value to the corresponding pool:
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
"newapp.xxx.edu" {
Request was for newapp, so use the newapp HTTP pool
pool newapp_http_pool
default {
Request was not for newapp so use the default pool
pool default_http_pool
}
}
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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