Forum Discussion
netgnom_66567
Nimbostratus
Jul 14, 2009HTTP::respond deliver a GIF?
Hello all,
is it possible to store anywhere at the LB an image (e.g. "blank.gif") and to deliver this image to clients if all members of a pool are down?
I wrote this simple IRule ad its works fine, however i would like to prefer not to redirect the request but to deliver the image directly from LTM.
when HTTP_REQUEST {
if {[active_members my_pool] == 0 } {
if {[http_uri] starts_with "/xyz"} {
set Content-Type "application/x-javascript"
HTTP::respond 200 content {
var n1 = ''; var n2 = '';
}
}
else {
HTTP::respond 302 Location "http://my.failover.net/blank.gif"
}
}
}
Regards
Ilona
- The_Bhattman
Nimbostratus
There is an excellent example of what you are talking about that might work - JRahm
Admin
There's also a sorry page generator that will do all the work for you, classes, images, irules, etc:
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