From: Jeremy Kerr Date: Sun, 24 May 2015 09:31:56 +0000 (+0800) Subject: lib/apache2: Update sample configuration files for new staticfiles application X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=289ada39c7950a4d8c2a9fbf8993cab0642f8f20;p=patchwork lib/apache2: Update sample configuration files for new staticfiles application The static files app will collect all of the static files into STATIC_ROOT, which is under htdocs/static/. Signed-off-by: Jeremy Kerr --- diff --git a/lib/apache2/patchwork.wsgi.conf b/lib/apache2/patchwork.wsgi.conf index 3756e5a..cce7e7a 100644 --- a/lib/apache2/patchwork.wsgi.conf +++ b/lib/apache2/patchwork.wsgi.conf @@ -1,20 +1,8 @@ - - 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" - - Order allow,deny - Allow from all - - - Alias /media/ "/usr/share/python-support/python-django/django/contrib/admin/media/" - - - Order allow,deny - Allow from all - - +Alias /static/ "/srv/patchwork/htdocs/static/" + + Order allow,deny + Allow from all + WSGIScriptAlias / "/srv/patchwork/lib/apache2/patchwork.wsgi" WSGIPassAuthorization On