Forum Discussion
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