From e96748c0299c75f729de40d8af960f7c139e53d7 Mon Sep 17 00:00:00 2001 From: Baudouin Feildel Date: Sat, 6 Jan 2024 14:39:15 +0000 Subject: [PATCH] Fix Apache configuration Built assets are fetched using path like this: `/assets/foo-a1b2c3.js`. Apache failed to serve those, as it was missing disabling the proxy pass for the static assets folder. This commit adds the necessary configuration for properly serving the static assets. Part-of: --- deploy/apache.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deploy/apache.conf b/deploy/apache.conf index 0c072059e..a95e6a55d 100644 --- a/deploy/apache.conf +++ b/deploy/apache.conf @@ -94,6 +94,11 @@ Define MEDIA_DIRECTORY_PATH ${FUNKWHALE_ROOT_PATH}/data/media Alias /front ${FUNKWHALE_ROOT_PATH}/front/dist + + ProxyPass "!" + + Alias /assets ${FUNKWHALE_ROOT_PATH}/front/dist/assets + ProxyPass "!"