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"]