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