aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2008-11-14 17:36:50 +0000
committerfrancis <francis>2008-11-14 17:36:50 +0000
commit73d52336963241c63fc01867bcc91d08b9ed5c4d (patch)
treec553e903508d932f11d297a980bf3622d3a45d63
parent0cf498e5e2f9b4e3abb3a592f62a10cd84623070 (diff)
Don't redir for /files/ directory
-rw-r--r--config/httpd.conf3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/httpd.conf b/config/httpd.conf
index 28d10f382..d5a8a4866 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.17 2008-11-11 17:08:14 francis Exp $
+# $Id: httpd.conf,v 1.18 2008-11-14 17:36:50 francis Exp $
# This is needed for the PHP spell checker
<Location /fcgi>
@@ -43,6 +43,7 @@ RewriteRule /down.html / [R]
# Use Mongrel as the main webserver (more reliable than FastCGI for Rails)
RewriteCond %{REQUEST_URI} !^/jslib/
RewriteCond %{REQUEST_URI} !^/fcgi/
+RewriteCond %{REQUEST_URI} !^/files/
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteRule ^/(.*) http://localhost:3000/$1 [P]
# This is roughly equivalent to ProxyPass, but lets Apache serve the static files.