rendered paste body<VirtualHost 10.51.224.3:80>
ServerName trac.openplans.org
# un-typed trac projects
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/robots.txt [OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)bot [NC]
RewriteRule ^/(.*) - [F]
<Location />
PythonOption PYTHON_EGG_CACHE /tmp
SetHandler mod_python
PythonPath "['/usr/local/topp/trac'] sys.path"
PythonInterpreter main_interpreter
PythonHandler myvirtualtrac
PythonOption TracEnvParentDir /usr/local/topp/trac/sites/trac
PythonOption TracUriRoot /
PythonOption TracEnvIndexTemplate /usr/local/topp/trac/sites/trac/index.html
PythonDebug On
</Location>
# ReWrite previous trac links to point to their current location
# XXX this is brittle, non-programmatic,
# and unmaintainable without a sufficiently large number of monkeys
RewriteRule ^/(deliverance.*) http://oss.openplans.org/$1 [L,R=301]
RewriteRule ^/(listen.*) http://oss.openplans.org/$1 [L,R=301]
RewriteRule ^/(poacheggs.*) http://oss.openplans.org/$1 [L,R=301]
RewriteRule ^/(blockparty.*) http://sites.openplans.org/$1 [L,R=301]
RewriteRule ^/(gothamschools.*) http://sites.openplans.org/$1 [L,R=301]
RewriteRule ^/(errors-livablestreets.*) http://sites.openplans.org/$1 [L,R=301]
RewriteRule ^/(errors-openplans.*) http://sites.openplans.org/$1 [L,R=301]
RewriteRule ^/(lists_opengeo.*) http://sites.openplans.org/$1 [L,R=301]
CustomLog /var/log/apache2/trac.openplans.org-access_log common
</VirtualHost>