From aa108190b6cdc9c9c3b95864db738f928db7191a Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Mon, 19 Feb 2024 11:18:28 -0800 Subject: [PATCH] Oops, only redirect to maintenance.html internally Oh I see, if I start with a slash, then it's interpreted as a reference to a file; whereas if I don't, it's interpreted as a URL redirect. Ok! --- deploy/files/sites-available/impress.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/files/sites-available/impress.conf b/deploy/files/sites-available/impress.conf index 1085bf66..4234b2ad 100644 --- a/deploy/files/sites-available/impress.conf +++ b/deploy/files/sites-available/impress.conf @@ -34,7 +34,7 @@ server { } # On status 503, return the maintenance page. - error_page 503 maintenance.html; + error_page 503 /maintenance.html; # Try serving static files first. If not found, fall back to the app. try_files $uri/index.html $uri @app;