Forum Discussion
mulhollandm_648
Nimbostratus
Dec 11, 2013can i use an irule to route traffic
folks
is it possible to route traffic directly to a endpoint
for example
if i have several web servers, 10.5.5.5, 10.6.6.6, 10.7.7.7, 10.4.4.4 etc
can i use a single irule so the ...
Kevin_Stewart
Employee
Dec 11, 2013Are you averse to creating a pool? This would be the simplest approach. You could alternately specify the server in a node statement within the iRule, assuming you have some logic to what goes where. Example:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/foo*" {
node 10.5.5.5 80
}
"/bar*" {
node 10.6.6.6 80
}
"/test*" {
node 10.7.7.7 80
}
}
}
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