aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/httpd.conf15
1 files changed, 10 insertions, 5 deletions
diff --git a/config/httpd.conf b/config/httpd.conf
index 21357cdf5..f7f93519e 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.3 2008-04-10 19:44:07 francis Exp $
+# $Id: httpd.conf,v 1.4 2008-04-11 16:11:48 francis Exp $
#DirectoryIndex index.cgi
@@ -15,10 +15,6 @@
SetHandler fastcgi-script
</Location>
-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
@@ -28,3 +24,12 @@ RewriteRule /down.html / [R]
# Use mongrel
ProxyPass / http://localhost:3000/
+
+# Pass through the HTTP basic authentication to mongrel
+RewriteEngine On
+#RewriteLog /var/log/apache/rewrite.log
+#RewriteLogLevel 3
+RewriteCond %{LA-U:REMOTE_USER} (.+)
+RewriteRule . - [E=RU:%1]
+Header add X-Forwarded-User %{RU}e
+