aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/httpd.conf11
1 files changed, 10 insertions, 1 deletions
diff --git a/config/httpd.conf b/config/httpd.conf
index b6a1804ee..5d6a40a87 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.13 2008-06-10 15:12:02 francis Exp $
+# $Id: httpd.conf,v 1.14 2008-09-06 07:27:59 francis Exp $
# This is needed for the PHP spell checker
<Location /fcgi>
@@ -33,6 +33,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.
+RewriteCond %{DOCUMENT_ROOT}/down.html -s
+RewriteRule /([^.]*)$ /down.html [R]
+RewriteCond %{DOCUMENT_ROOT}/down.html !-s
+RewriteRule /down.html / [R]
+
# Use Mongrel as the main webserver (more reliable than FastCGI for Rails)
RewriteCond %{REQUEST_URI} !^/jslib/
RewriteCond %{REQUEST_URI} !^/fcgi/
@@ -40,3 +47,5 @@ RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteRule ^/(.*) http://localhost:3000/$1 [P]
# This is roughly equivalent to ProxyPass, but lets Apache serve the static files.
# ProxyPass / http://localhost:3000/
+
+