Forum Discussion
nitass
Apr 23, 2014Employee
When the maintenance page comes up it loads the text but the CSS and the images are missing.
it is because we change all request uri to root (/) in HTTP::uri / command. this has to be done for fixing the problem below.
If I go to qa.website.com/us/blah blah blah I get a page not found.
so, what we can do is to not change request uri for css and image. can you try something like this?
e.g.
when HTTP_REQUEST {
if { [active_members INF-HC-HTTP] < 1 } {
if { $static::DEBUG } { log local0. "Primary pool offline" }
switch -glob [string tolower [HTTP::path]] {
"*css" -
"*jpg" -
"*gif" -
"*png" {
do nothing
}
default {
HTTP::uri /
}
}
pool QA-PH
} elseif { [class match [string tolower [HTTP::uri]] starts_with QA-HC-URI] } {
pool INF-HC-HTTPDNN
} else {
pool INF-HC-HTTP
}
}