From 289ada39c7950a4d8c2a9fbf8993cab0642f8f20 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Sun, 24 May 2015 17:31:56 +0800 Subject: 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 --- lib/apache2/patchwork.wsgi.conf | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'lib/apache2') 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 -- cgit v1.2.3