From f751d19eff904eb18da4222c885a62f8604ba3b6 Mon Sep 17 00:00:00 2001 From: Lukas Schaefer Date: Mon, 12 Jan 2026 15:22:04 -0500 Subject: [PATCH] Fix dockerfile to support htaccess Signed-off-by: Lukas Schaefer --- 000-default.conf | 13 +++++++++++++ Dockerfile | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 000-default.conf diff --git a/000-default.conf b/000-default.conf new file mode 100644 index 0000000..50bca68 --- /dev/null +++ b/000-default.conf @@ -0,0 +1,13 @@ + + ServerAdmin webmaster@localhost + DocumentRoot /var/www/html + + + Options Indexes FollowSymLinks + AllowOverride All + Require all granted + + + ErrorLog ${APACHE_LOG_DIR}/error.log + CustomLog ${APACHE_LOG_DIR}/access.log combined + diff --git a/Dockerfile b/Dockerfile index 58506a7..693cab1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,9 +24,9 @@ WORKDIR "/var/www/python" RUN pip3 install --break-system-packages -r requirements.txt WORKDIR "/var/www/html" # Gives apache the right settings -# COPY 000-default.conf /etc/apache2/sites-available/000-default.conf -# COPY apache2.conf /etc/apache2/apache2.conf +COPY 000-default.conf /etc/apache2/sites-available/000-default.conf RUN a2enmod rewrite +RUN a2ensite 000-default.conf COPY start.sh /start.sh RUN chmod +x /start.sh CMD ["/start.sh"]