Forum Discussion
4 Replies
Sort By
- natheCirrocumulus
Et, you can certainly write an irule for this. Check out the codeshare as there should be an example on there.
Alternative is 'fallback host' option in http profile assigned to VIP.
Hope this helps
- Kevin_StewartEmployee
If I may add, there's a few options:
-
You can use your own HTML content in an iFile
when HTTP_REQUEST { if { [active_members [LB::server pool]] < 1 } { set ifileContent [ifile get "/Common/iFile-index.html"] HTTP::respond 200 content $ifileContent unset ifileContent } }
-
You can simply respond with some static HTML
when HTTP_REQUEST { if { [active_members [LB::server pool]] < 1 } { HTTP::respond 200 content "put your html content here" } }
-
You can issue a redirect to an external page
when HTTP_REQUEST { if { [active_members [LB::server pool]] < 1 } { HTTP::respond 302 Location "http://notfound.domain.com" } }
-
Or as Nathan suggests you can simply use the fallback host option in the HTTP profile to force a redirect to an external site.
In all cases though you need a reasonably good monitor applied to the pool.
-
- eroach5Nimbostratus
Thank you all for the feedback, still working on getting this to work. et
- eroach5Nimbostratus
Thank you Kevin and Nathan!!
Worked like a Champ!!