Don't use X-Accel-Redirect for the maintenance page, it overrides the status code.
This commit is contained in:
parent
aaba24894c
commit
b1d9f88549
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue