Forum Discussion
DarthW_125478
Nimbostratus
Dec 27, 2012iRule to ping host
I'm pretty new to the Big IP load balancers. We have a couple servers on which we have SharePoint sites load balanced. The load balancing appears to work fine. Obviously, I've set up a Virtual Ser...
Darthw_20046
Nimbostratus
Jan 03, 2013This is what I'm using, although the original code had the HTTP::uri as "/whichserver". I seemed to get the same result with the whichserver variable or the site uri. So, I should see the "Real ServerIP...." in the webpage? I'd rather have something in a header to the client.
when LB_SELECTED {
set whichserver [LB::server addr]
}
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] equals "website.domain.net" } {
HTTP::respond 200 content "Real server IP is: [LB::server addr]" noserver Content-Type "text/html" Connection "Close"
Stop processing the iRule for this event here
return
}
}
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