From 2d55fe7a6abbe89a5508c1642e9a75e6bd9eab79 Mon Sep 17 00:00:00 2001 From: Sean Finney Date: Wed, 2 Dec 2009 21:15:58 +0100 Subject: now include a 500 error page --- sample-apache2.conf | 4 ++++ static/500.html | 46 ++++++++++++++++++++++++++++++++++++++++++++++ static/img/500-ohnoes.png | Bin 0 -> 377343 bytes 3 files changed, 50 insertions(+) create mode 100644 static/500.html create mode 100644 static/img/500-ohnoes.png diff --git a/sample-apache2.conf b/sample-apache2.conf index 419b0a8..5bd6e7e 100644 --- a/sample-apache2.conf +++ b/sample-apache2.conf @@ -6,6 +6,8 @@ # static content, such as images, css, etc #Alias /static /home/seanius/patch-tracker/static +# a custom error page +#ErrorDocument 500 /static/500.html # all other requests go through a central handler #WSGIScriptAlias / /home/seanius/patch-tracker/pagehandler.py # @@ -19,6 +21,8 @@ # static content, such as images, css, etc Alias /patch-tracking.debian.net/static /home/seanius/patch-tracker/static +# a custom error page +ErrorDocument 500 /patch-tracking.debian.net/static/500.html # all other requests go through a central handler WSGIScriptAlias /patch-tracking.debian.net /home/seanius/patch-tracker/pagehandler.py diff --git a/static/500.html b/static/500.html new file mode 100644 index 0000000..eef8c94 --- /dev/null +++ b/static/500.html @@ -0,0 +1,46 @@ + + + + Oh noes! Error! + + + + + + +

Oh noes! An error!

+ +
+ [maintenance cat] +

+ The system is currently unavailable. Please wait for it to become + available again. +

+
+ + + + diff --git a/static/img/500-ohnoes.png b/static/img/500-ohnoes.png new file mode 100644 index 0000000..beab844 Binary files /dev/null and b/static/img/500-ohnoes.png differ -- cgit v1.2.3