Forum Discussion
P_K
Nov 06, 2017Altostratus
May be you could try something like this..
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/" { HTTP::respond 200 content [ifile get "maintenance.html"] noserver "Content-Type" "text/html" "Cache-Control" "no-cache, must-revalidate" }
"/images/logo.png" { HTTP::respond 200 content [ifile get "logo"] }
"/images/maintenance.png" { HTTP::respond 200 content [ifile get "maintenance"] }
"/css/page.css" { HTTP::respond 200 content [ifile get "page.css"] noserver "Content-Type" "text/css" "Cache-Control" "no-cache, must-revalidate" }
}
}