# loading some modules for the review system
LoadModule python_module /usr/lib/apache2/modules/mod_python.so
LoadModule fastcgi_module /usr/lib/apache2/modules/mod_fastcgi.so
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
AddHandler fastcgi-script .fcgi
# We have a large timeout on this because some operations may take a long
# time (such as viewing a large diff where many the files need to be
# retrieved from the repository. The path here doesn't really matter, but the
# port needs to match the one used by the fastcgi server.
FastCGIExternalServer /usr/local/lib/python2.5/site-packages/reviewboard/htdocs/reviewboard.$
#<VirtualHost *>
<Directory "/review">
# ServerName example.com
DocumentRoot /usr/local/lib/python2.5/site-packages/reviewboard/htdocs/
# Alias static media requests to filesystem
Alias /media /usr/lib/python2.5/site-packages/django/contrib/admin/media
Alias /css /usr/local/lib/python2.5/site-packages/reviewboard/htdocs/images
Alias /images /usr/local/lib/python2.5/site-packages/reviewboard/htdocs/images
Alias /scripts /usr/local/lib/python2.5/site-packages/reviewboard/htdocs/scripts
Alias /errordocs /usr/local/lib/python2.5/site-packages/reviewboard/htdocs/errordocs
# Error handlers
ErrorDocument 500 /errordocs/500.html
# Direct all other requests to the fastcgi server
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ /reviewboard.fcgi/$1 [QSA,L]
</Directory>
#</VirtualHost>