diff --git a/Dockerfile b/Dockerfile
index 9b8de60aa82eda174e11275d6c5eb6ac78db683d..bc134b08da777be4d1889d0f07bcc4c4c12ab1a6 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -25,6 +25,11 @@ RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
 # |--------------------------------------------------------------------------
 COPY --from=build /build/public /var/www/html
 
+# |--------------------------------------------------------------------------
+# | enable apache modules
+# |--------------------------------------------------------------------------
+RUN a2enmod headers rewrite
+
 # |--------------------------------------------------------------------------
 # | expose http port
 # |--------------------------------------------------------------------------