From b1d9f8854915ad89fa79917d9704b9cca4d24a6d Mon Sep 17 00:00:00 2001 From: flashwave Date: Tue, 25 Feb 2025 15:14:17 +0000 Subject: [PATCH] Don't use X-Accel-Redirect for the maintenance page, it overrides the status code. --- public/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.php b/public/index.php index 5171431e..0085336d 100644 --- a/public/index.php +++ b/public/index.php @@ -17,7 +17,7 @@ ob_start(); if(is_file($msz->dbCtx->getMigrateLockPath())) { http_response_code(503); header('Content-Type: text/html; charset=utf-8'); - header('X-Accel-Redirect: /error-503.html'); + echo file_get_contents(sprintf('%s/error-503.html', Misuzu::PATH_PUBLIC)); exit; }