Forum Discussion
lunitic_56137
Jul 02, 2012Nimbostratus
Maintenance/sorry page with image on v11.1
I have written maintenance pages in the past with ease. The examples Devcentral were very helpful. The problem with creating one now that I find are the "iFiles" introduction in v11.
The w...
pawel_jakacki_7
Nov 11, 2012Nimbostratus
Hi Guys,
is there any possibility to make a such maintenance page using css? I've tried, but with no success.
when HTTP_REQUEST {
if {[active_members [LB::server pool]] < 1} {
if {[HTTP::uri] eq "/"} {
HTTP::respond 200 content [ifile get "index"]
} elseif {[HTTP::uri] eq "/file1.gif"} {
HTTP::respond 200 content [ifile get file1"]
} elseif {[HTTP::uri] eq "/style.css"} {
HTTP::respond 200 content [ifile get "style"]
} elseif {[HTTP::uri] eq "/file2.jpg"} {
HTTP::respond 200 content [ifile get file2"]
} elseif {[HTTP::uri] eq "/file3.jpg"} {
HTTP::respond 200 content [ifile get "file3"]
} else { discard }
}
}
File1 is directly referenced in the index.html and is displayed correctly, other files have reference in style.css file, which has no effect.
Paul
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