diff options
-rw-r--r-- | config/httpd.conf | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/config/httpd.conf b/config/httpd.conf new file mode 100644 index 000000000..4aa025a01 --- /dev/null +++ b/config/httpd.conf @@ -0,0 +1,23 @@ +# Apache configuration for FOI site. +# +# For development ignore this, you can just run ./scripts/server as for any +# Ruby on Rails application. +# +# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. +# Email: francis@mysociety.org; WWW: http://www.mysociety.org +# +# $Id: httpd.conf,v 1.1 2007-11-27 10:41:31 francis Exp $ + +#DirectoryIndex index.cgi + +RewriteEngine on +#RewriteLog /var/log/apache/rewrite.log +#RewriteLogLevel 3 + +# Make a file down.html in the DocumentRoot bring down the whole site and +# display itself. +RewriteCond %{DOCUMENT_ROOT}/down.html -s +RewriteRule /(.+).cgi /down.html [R] +RewriteCond %{DOCUMENT_ROOT}/down.html !-s +RewriteRule /down.html / [R] + |