1
0
Fork 0
forked from OpenNeo/impress

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!
This commit is contained in:
Emi Matchu 2024-02-19 11:18:28 -08:00
parent 7c36ba81e5
commit aa108190b6

View file

@ -34,7 +34,7 @@ server {
} }
# On status 503, return the maintenance page. # 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 serving static files first. If not found, fall back to the app.
try_files $uri/index.html $uri @app; try_files $uri/index.html $uri @app;