From df1c584cb9c88ba49d461a9f8e077f1ef28bb185 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Tue, 18 Feb 2025 10:15:01 +0800 Subject: [PATCH] Use the Moodle Router as a FallbackResource --- Dockerfile | 1 + root/etc/apache2/conf-enabled/fallback.conf | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 root/etc/apache2/conf-enabled/fallback.conf diff --git a/Dockerfile b/Dockerfile index 0c3f0f1..ec21317 100644 --- a/Dockerfile +++ b/Dockerfile @@ -50,6 +50,7 @@ RUN mkdir /var/www/moodledata && chown www-data /var/www/moodledata && \ mkdir /var/www/.nvm && chown www-data /var/www/.nvm ADD root/usr /usr +ADD root/etc /etc # Fix the original permissions of /tmp, the PHP default upload tmp dir. RUN chmod 777 /tmp && chmod +t /tmp diff --git a/root/etc/apache2/conf-enabled/fallback.conf b/root/etc/apache2/conf-enabled/fallback.conf new file mode 100644 index 0000000..fdaceff --- /dev/null +++ b/root/etc/apache2/conf-enabled/fallback.conf @@ -0,0 +1,3 @@ + + FallbackResource /r.php +