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

Edmund von der Burg evdb at mysociety.org
Sun Feb 6 17:13:35 CET 2011


On 5 February 2011 19:52, Petter Reinholdtsen <pere at hungry.com> wrote:
>
> 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

Hello,

All mySociety apps are deployed to a standard in-house environment.
Part of that deploy process is creating a vhost entry for apache from
templates. Since the original httpd.conf was written we have moved
from Apache 1 to Apache 2 and unfortunately the commented out example
config was not updated.

However it is now - and there is an INSTALL file that is being written
and corrected that should make it much easier for you to get FMS up
and running (just pushed out).

https://github.com/mysociety/fixmystreet/blob/master/notes/INSTALL

You will run into a few more issues - one is that outbound email from
the confirm your email stage is routed through an internal system that
catches bounces and does other clever things - EvEl it is called. Your
server will crash when this service returns a 403 error to it. The
current patch is just to warn these email to STDERR - but I'll change
that to send the emails normally if no EvEl server is specified in the
config.

At the moment I'm looking at the issues with deploying FMS outside the
mySociety environment and fixing them as I find them. You can expect
updates to the codebase over the next few days to deal with these
issues.

Any problems please give me a shout - preferably on the
business at fixmystreet.com email address so that it goes straight to the
right people.

Cheers,
  Edmund.


> Happy hacking,
> --
> Petter Reinholdtsen
>


More information about the fiksgatami mailing list