From 9301f965702296b208cad0f36e7a62a280c98b32 Mon Sep 17 00:00:00 2001 From: Kobus van Schoor <10784365+kobus-v-schoor@users.noreply.github.com> Date: Sun, 23 Aug 2020 20:47:11 +0200 Subject: [PATCH] Update apache-vhost config generation The current configuration generated uses the old syntax for Apache access control. On a Debian 10 install I recently did this generated config just resulted in an access denied error when using Apache and mod_wsgi. Making the changes in this pull request to my Apache config solved the issue (got the hint looking at Flask's documentation here: https://flask.palletsprojects.com/en/1.1.x/deploying/mod_wsgi/#configuring-apache). --- ihatemoney/conf-templates/apache-vhost.conf.j2 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ihatemoney/conf-templates/apache-vhost.conf.j2 b/ihatemoney/conf-templates/apache-vhost.conf.j2 index e169589a..795a05f3 100644 --- a/ihatemoney/conf-templates/apache-vhost.conf.j2 +++ b/ihatemoney/conf-templates/apache-vhost.conf.j2 @@ -11,8 +11,7 @@ WSGIProcessGroup ihatemoney WSGIApplicationGroup %{GLOBAL} - Order deny,allow - Allow from all + Require all granted Alias /static/ {{ pkg_path }}/static/