diff options
Diffstat (limited to 'lib/apache2/patchwork.mod_python.conf')
-rw-r--r-- | lib/apache2/patchwork.mod_python.conf | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/apache2/patchwork.mod_python.conf b/lib/apache2/patchwork.mod_python.conf new file mode 100644 index 0000000..a84a9e2 --- /dev/null +++ b/lib/apache2/patchwork.mod_python.conf @@ -0,0 +1,22 @@ +NameVirtualHost patchwork.example.com:80 +<VirtualHost patchwork.example.com:80> + DocumentRoot /srv/patchwork/htdocs/ + + Alias /media/ /srv/patchwork/lib/python/django/contrib/admin/media/ + + <Location "/"> + SetHandler python-program + PythonHandler django.core.handlers.modpython + PythonPath "['/srv/patchwork/apps', '/srv/patchwork/lib/python'] + sys.path" + SetEnv DJANGO_SETTINGS_MODULE patchwork.settings + </Location> + + <Location "/(images|css|js|media)/"> + SetHandler None + </Location> + + LogLevel warn + ErrorLog /var/log/apache2/patchwork-error.log + CustomLog /var/log/apache2/patchwork-acess.log combined + +</VirtualHost> |