diff options
author | matthew <matthew> | 2009-09-02 13:05:48 +0000 |
---|---|---|
committer | matthew <matthew> | 2009-09-02 13:05:48 +0000 |
commit | 53ff71145e158af164928b43a7b32830ee49c41f (patch) | |
tree | 6951246216e967abb7a76bf1aa5a4606592e03b4 | |
parent | e584b5afcf318a2cc61817de3c009234991876ac (diff) |
Try this.
-rw-r--r-- | config/httpd.conf | 9 |
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. |