diff options
author | francis <francis> | 2007-11-27 10:41:31 +0000 |
---|---|---|
committer | francis <francis> | 2007-11-27 10:41:31 +0000 |
commit | d7c9371fe88c0d6a4a5759684392d7f4867050c3 (patch) | |
tree | cd956fa528cc7b303132d0ba4b8e7f312cc362b2 | |
parent | 95c102bbf80db3d12553accb9adaa53eed1a284a (diff) |
Apache config for FOI site
-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] + |