Forum Discussion
avnishvyas_1974
Nimbostratus
Aug 05, 2015Maintenance Page using V11
Hi guys
Ive read the brilliant article by https://devcentral.f5.com/articles/v111-ndashexternal-file-access-from-irules-via-ifiles
which has been most useful and im actually about to attempt thi...
Kevin_Stewart
Employee
Aug 05, 2015So two things:
-
If you were using images in your maintenance page, the image ifiles would be in whatever image format, and the html page ifile would be a text file. In most cases you also want to include the "Content-Type" header in the response so the browser knows how to handle the object.
-
Since you don't have any images in your maintenance page, the iRule is considerably simpler:
when HTTP_REQUEST { if { [active_members [LB::server pool]] < 1 } { HTTP::respond 200 content [ifile get "maint_index_html"] } }
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