summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-01-28 10:19:22 +0100
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-01-28 10:19:22 +0100
commit5de16dee768f4482d8db48b58fad1cf55c1320ee (patch)
tree09ab80ee780f3e6c4cb9601f4ba9dbf559356a00
parentfd9a8c36010e6fe9377f75eff044d7551761c2b6 (diff)
downloadgitlab-ce-5de16dee768f4482d8db48b58fad1cf55c1320ee.tar.gz
Add a custom 502 page
-rw-r--r--lib/support/nginx/gitlab2
-rw-r--r--public/502.html13
2 files changed, 15 insertions, 0 deletions
diff --git a/lib/support/nginx/gitlab b/lib/support/nginx/gitlab
index 0860d2a8693..882f0386046 100644
--- a/lib/support/nginx/gitlab
+++ b/lib/support/nginx/gitlab
@@ -53,5 +53,7 @@ server {
proxy_pass http://gitlab;
}
+
+ error_page 502 /502.html;
}
diff --git a/public/502.html b/public/502.html
new file mode 100644
index 00000000000..d22816ce870
--- /dev/null
+++ b/public/502.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>GitLab is not responding (502)</title>
+ <link href="/static.css" media="screen" rel="stylesheet" type="text/css" />
+</head>
+<body>
+ <h1>502</h1>
+ <h3>GitLab is not responding.</h3>
+ <hr/>
+ <p>Please contact your administrator if this problem persists.</p>
+</body>
+</html>