Forum Discussion
kawiman_43144
Jul 25, 2012Nimbostratus
Respond to Get request on it's own?
I am evaluating load balancers and one "nice to have" would be to have the load balancer itself respond to an http get request with a specified string to any client that sends the get. Is this possibl...
hooleylist
Aug 01, 2012Cirrostratus
As Hamish said this is definitely possible. Here's a slightly simpler example that sends some HTML in an HTTP 200 response for requests to /respond.html:
https://devcentral.f5.com/wiki/iRules.http__respond.ashx
when HTTP_REQUEST {
if {[HTTP::path] eq "/respond.html" {
HTTP::respond 200 content {
Apology Page
We are sorry, but the site you are looking for is temporarily out of service
If you feel you have reached this page in error, please try again.
}
}
}
Aaron
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