jondot/statsd-stack — pull request #1 by joseph (2012-03-06 11:18:50+00:00)
Title: Moving WSGIImportScript outside of <VirtualHost>

Running the script gave me an error during `graphite_web` installation:

--> Installing graphite_web for roles: statd_server
.....:in `process!': failed: "sh -c 'sudo -p '\\''sudo password: '\\'' bash -c '\\''cd /tmp/graphite_web/graphite-web-0.9.9 && /etc/init.d/apache2 reload >> graphite_web-post.log 2>&1'\\'''" on bookish-stats (Capistrano::CommandError)

Checked it out on the server and saw this:

$ apache2ctl configtest
Syntax error on line 29 of /etc/apache2/sites-enabled/000-default:
WSGIImportScript cannot occur within section

Made this quick and dirty change, then everything ran correctly. You don't have to pull it in, but might help you track it down. Cheers.