From e5166c03bfcc25dca4cdc077173541320062184e Mon Sep 17 00:00:00 2001 From: msinkec Date: Wed, 8 Jul 2020 14:55:35 +0200 Subject: [PATCH] Enabled rewrite module for httpd in docker. --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 71c06b8..9eeb2ba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,5 +3,8 @@ FROM php:7.2-apache # Use the default production configuration RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" +# Enable rewrite module for httpd. +RUN ln -s /etc/apache2/mods-enabled/rewrite.load /etc/apache2/mods-available/rewrite.load + COPY . /var/www/html