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 IIS servers. I am adding a new app on one of the servers and will use a new hostname to send users to that server.
I need to have all traffic to http://newapp.xxx.edu redirected to one of the IIS servers (10.x.x.x).
It seems that I need to use HTTP::redirect to do this but I don't know the proper syntax to make that happen. Any help for a complete newb would be appreciated.
- hoolio
Cirrostratus
If 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 } }
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