projects
/
pear
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4d2e63
)
show 503 error when database fails
author
Alan Knowles
<alan@roojs.com>
Wed, 28 Aug 2019 04:59:40 +0000
(12:59 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 28 Aug 2019 04:59:40 +0000
(12:59 +0800)
HTML/FlexyFramework.php
patch
|
blob
|
history
diff --git
a/HTML/FlexyFramework.php
b/HTML/FlexyFramework.php
index
3e2e131
..
27b39ac
100755
(executable)
--- a/
HTML/FlexyFramework.php
+++ b/
HTML/FlexyFramework.php
@@
-1489,7
+1489,9
@@
RewriteRule ^(.+)$ /web.hpasite/index.local.php [L,NC,E=URL:$1]
HTML_FlexyFramework::run($this->fatalAction,$msg);
exit;
}
-
+ header('HTTP/1.1 503 Service Temporarily Unavailable');
+ header('Status: 503 Service Temporarily Unavailable');
+ header('Retry-After: 300');
echo $this->cli ? $msg ."\n" : "<H1>$msg</H1>configuration information<PRE>";
if ($showConfig) {