Also have you tried this one? Instead of plain “return 503;” in server block:
No, I haven’t and don’t plan to at this time because I have a setup
that works fine as posted earlier with images, css etc all loading as
required.
For completeness, the version without if (single page - all requests
returning 503, least overhead etc - put other static resources on
different domain/server):
server {
# listen etc
…
error_page 503 @503;
return 503;
location @503 {
root /;
# Immediately serves 503 page, not $uri.
# The fallback should never happen.
try_files /file/system/path/to/503.html =500;
}
…
}
Pretty sure will return 404 when accessing dynamic resources[1].
Hopefully you don’t have any or care about the impact.
No … because there is none as my maintenance page is a static page.
Only thing it uses is javascript which runs on client’s browser .
Anyway, not sure why this is dragging on.
I am perfectly happy with my setup. I don’t want to use a cdn for this
page nor do I need to run a cgi script or similar on it.
If you happen to use or prefer another setup, that’s fine with me as
well.