aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/httpd.conf9
1 files changed, 8 insertions, 1 deletions
diff --git a/config/httpd.conf b/config/httpd.conf
index d21217225..f8b98b7ff 100644
--- a/config/httpd.conf
+++ b/config/httpd.conf
@@ -6,7 +6,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org
#
-# $Id: httpd.conf,v 1.30 2009-09-02 13:01:03 matthew Exp $
+# $Id: httpd.conf,v 1.31 2009-09-02 13:05:48 matthew Exp $
# This is needed for the PHP spell checker
<Location /fcgi>
@@ -27,6 +27,13 @@ RewriteCond %{LA-U:REMOTE_USER} (.+)
RewriteRule . - [E=RU:%1]
RequestHeader add X-Forwarded-User %{RU}e
+# Make a file down.html in the DocumentRoot bring down the whole site and
+# display itself.
+ErrorDocument 503 /down.html
+Redirect 503 /down
+RewriteCond %{DOCUMENT_ROOT}/down.html -s
+RewriteRule /([^.]*)$ /down [PT]
+
# Old /files URL to new subdomain (as can't use Alias with passenger,
# so we do it on its own domain). This is for custom admin upload
# files for archiving.