summaryrefslogtreecommitdiffstats
path: root/lib/apache2/patchwork.wsgi.conf
diff options
context:
space:
mode:
Diffstat (limited to 'lib/apache2/patchwork.wsgi.conf')
-rw-r--r--lib/apache2/patchwork.wsgi.conf20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/apache2/patchwork.wsgi.conf b/lib/apache2/patchwork.wsgi.conf
new file mode 100644
index 0000000..e99f8c6
--- /dev/null
+++ b/lib/apache2/patchwork.wsgi.conf
@@ -0,0 +1,20 @@
+<IfModule mod_alias.c>
+ Alias /images/ "/srv/patchwork/htdocs/images/"
+ Alias /css/ "/srv/patchwork/htdocs/css/"
+ Alias /js/ "/srv/patchwork/htdocs/js/"
+ Alias /robots.txt "/srv/patchwork/htdocs/robots.txt"
+ <Directory "/srv/patchwork/htdocs">
+ Order allow,deny
+ Allow from all
+ </Directory>
+
+ Alias /media/ "/usr/share/python-support/python-django/django/contrib/admin/media/"
+
+ <Directory "/usr/share/python-support/python-django/django/contrib/admin/media/">
+ Order allow,deny
+ Allow from all
+ </Directory>
+</IfModule>
+
+WSGIScriptAlias / "/srv/patchwork/patchwork.wsgi"
+WSGIPassAuthorization On