Inital commit
[patchwork] / lib / apache2 / patchwork.mod_python.conf
1 NameVirtualHost patchwork.example.com:80
2 <VirtualHost patchwork.example.com:80>
3         DocumentRoot /srv/patchwork/htdocs/
4
5         Alias /media/ /srv/patchwork/lib/python/django/contrib/admin/media/
6
7         <Location "/">
8             SetHandler python-program
9             PythonHandler django.core.handlers.modpython
10             PythonPath "['/srv/patchwork/apps', '/srv/patchwork/lib/python'] + sys.path"
11             SetEnv DJANGO_SETTINGS_MODULE patchwork.settings
12         </Location>
13
14         <Location "/(images|css|js|media)/">
15             SetHandler None
16         </Location>
17
18         LogLevel warn
19         ErrorLog /var/log/apache2/patchwork-error.log
20         CustomLog /var/log/apache2/patchwork-acess.log combined
21
22 </VirtualHost>