Forum Discussion
Chris_Day_10331
Nimbostratus
Dec 27, 2005iRules for Individual Testing of Farm Servers
Hello wonderful people at DevCentral!
I have a follow-up to an earlier post I had made “iRule for Server Testing” (http://devcentral.f5.com/default.aspx/Default.aspx?tabid=28&forumid=5&posti...
JRahm
Admin
Dec 28, 2005if using the server IP address, you could do something like this. Note that this is untested, but should get you started.
when HTTP_REQUEST {
if { [HTTP::uri] > 1 } {
set uri_index [ split [HTTP::uri] "/" ]
set myserver [ string trimleft [ lindex $uri_index 0 ] "/" ]
set myuri [ lindex $uri_index 1 ]
HTTP::uri "/$myuri"
use node $myserver
}
}
when HTTP_RESPONSE {
if { $myserver != "" } {
HTTP::uri "/$myserver[HTTP::uri]"
}
}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