[NUUG fiksgatami] [patch] Try to get Apache in Debian/Squeeze working with fixmystreet

Petter Reinholdtsen pere at hungry.com
Sat Feb 5 23:52:40 CET 2011


Trying to get fixmystreet operational on a freshly installed
Debian/Squeeze machine, I run into this error:

  Syntax error on line 86 of
    /srv/fiksgatami-dev.nuug.no/fixmystreet/conf/httpd.conf:
  ProxyPass|ProxyPassMatch can not have a path when defined in a
    location.
  Action 'configtest' failed.
  The Apache error log may have more information.
   failed!

I'm not quite sure what the problem is, but found
<URL:http://www.gossamer-threads.com/lists/apache/users/342793> trying
to explain the problem, and based on this I guessed that removing
/tilma/ from the problematic lines would help.

This patch solved the issue.  Is it the correct approach?  What are
the lines doing anyway?  I was unable to figure out why this mapping
from /tilma/ were used instead of using the URL directly.

diff --git a/conf/httpd.conf b/conf/httpd.conf
index e3f8e5c..ebc4143 100644
--- a/conf/httpd.conf
+++ b/conf/httpd.conf
@@ -83,8 +83,10 @@ RewriteRule ^/alerts/?$                      /alert [R=permane
 RewriteRule ^/json/problems/new$            /json.cgi?type=new_problems [QSA]
 RewriteRule ^/json/problems/fixed$          /json.cgi?type=fixed_problems [QSA]

-ProxyPass /tilma/ http://tilma.mysociety.org/
-ProxyPassReverse /tilma/ http://tilma.mysociety.org/
+#ProxyPass /tilma/ http://tilma.mysociety.org/
+#ProxyPassReverse /tilma/ http://tilma.mysociety.org/
+ProxyPass http://tilma.mysociety.org/
+ProxyPassReverse http://tilma.mysociety.org/

 # CGI files can be referred without CGI
 RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI}.cgi -f

Happy hacking,
-- 
Petter Reinholdtsen


More information about the fiksgatami mailing list