diff options
-rw-r--r-- | conf/httpd.conf | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/conf/httpd.conf b/conf/httpd.conf new file mode 100644 index 000000000..411531937 --- /dev/null +++ b/conf/httpd.conf @@ -0,0 +1,37 @@ +# Apache configuration for Broken Civic Infrastructure. +# +# Add lines something like this to your main /etc/apache/httpd.conf: +# +# # BCI +# <VirtualHost *:80> +# ServerName bci.owl +# DocumentRoot /home/francis/devel/mysociety/bci/web/ +# <Directory /home/francis/devel/mysociety/bci/web> +# Include /home/francis/devel/mysociety/bci/conf/httpd.conf +# </Directory> +# Alias /admin/ /home/francis/devel/mysociety/bci/web-admin/ +# </VirtualHost> +# +# You also need to enable cgi files to run as CGI scripts. For example: +# +# Options +ExecCGI +# AddHandler cgi-script .cgi +# +# Copyright (c) 2006 UK Citizens Online Democracy. All rights reserved. +# Email: francis@mysociety.org; WWW: http://www.mysociety.org +# +# $Id: httpd.conf,v 1.1 2006-09-19 16:04:56 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 /(.+).php /down.html [R] +RewriteCond %{DOCUMENT_ROOT}/down.html !-s +RewriteRule /down.html / [R] + |