aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-11-16 18:55:48 +0100
committerThomas Lange <code@nerdmind.de>2017-11-16 18:55:48 +0100
commit4d49f2622b3ff737abbb5557dc7327acb37a90ce (patch)
tree712a5eb11df9d4a48dcd9ec22e843a2daee5bace
parent346de03e47a0d65c6c8af9703be6bf11ae429fdf (diff)
downloadnginx-errorpage-4d49f2622b3ff737abbb5557dc7327acb37a90ce.tar.gz
nginx-errorpage-4d49f2622b3ff737abbb5557dc7327acb37a90ce.tar.xz
nginx-errorpage-4d49f2622b3ff737abbb5557dc7327acb37a90ce.zip
Error page for HTTP status code 502 has been added.
-rw-r--r--customization/errorpage/502.shtml7
-rw-r--r--snippets/errorpage.conf1
2 files changed, 8 insertions, 0 deletions
diff --git a/customization/errorpage/502.shtml b/customization/errorpage/502.shtml
new file mode 100644
index 0000000..6629e18
--- /dev/null
+++ b/customization/errorpage/502.shtml
@@ -0,0 +1,7 @@
+<!--#set var="ERRORPAGE_CODE" value="502" -->
+<!--#set var="ERRORPAGE_TEXT" value="Bad Gateway" -->
+
+<!--#include file="header.shtml" -->
+ <p>The server was acting as a gateway or proxy and received an invalid response from the upstream server (or
+ the upstream server is currently unavailable due to maintenance downtime or capacity problems).</p>
+<!--#include file="footer.shtml" --> \ No newline at end of file
diff --git a/snippets/errorpage.conf b/snippets/errorpage.conf
index 16ce288..d631317 100644
--- a/snippets/errorpage.conf
+++ b/snippets/errorpage.conf
@@ -14,6 +14,7 @@ error_page 415 /errorpage/415.shtml;
error_page 429 /errorpage/429.shtml;
error_page 500 /errorpage/500.shtml;
error_page 501 /errorpage/501.shtml;
+error_page 502 /errorpage/502.shtml;
error_page 503 /errorpage/503.shtml;
error_page 504 /errorpage/504.shtml;