diff options
author | francis <francis> | 2008-04-11 16:11:48 +0000 |
---|---|---|
committer | francis <francis> | 2008-04-11 16:11:48 +0000 |
commit | cbcd37d7c55a7d64a5f2e304c2b9151649b2bbcd (patch) | |
tree | c721fcbae9728e1929a51f4f87c970ed190951fd | |
parent | da2467cbdb75ed8d46f2f1aca6deb5b000f51618 (diff) |
Pass HTTP basic auth through to mongrel
-rw-r--r-- | config/httpd.conf | 15 |
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 + |