From 22d3f5710c36d6d84a535c137b53bd293377267d Mon Sep 17 00:00:00 2001 From: "max.mehl" Date: Mon, 19 Jun 2017 23:06:51 +0200 Subject: [PATCH] reinstate htaccess file and enable apache rewrite module --- Dockerfile | 2 ++ site/static/{_htaccess => .htaccess} | 1 + 2 files changed, 3 insertions(+) rename site/static/{_htaccess => .htaccess} (89%) diff --git a/Dockerfile b/Dockerfile index 5b5bb7f..4253988 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,8 @@ RUN curl -sS https://getcomposer.org/installer \ RUN composer require phpmailer/phpmailer +RUN a2enmod rewrite + ADD https://github.com/spf13/hugo/releases/download/v${HUGO_VERSION}/${HUGO_BINARY} /tmp/hugo.deb RUN dpkg -i /tmp/hugo.deb \ && rm /tmp/hugo.deb diff --git a/site/static/_htaccess b/site/static/.htaccess similarity index 89% rename from site/static/_htaccess rename to site/static/.htaccess index 2cf8d54..39ecb83 100644 --- a/site/static/_htaccess +++ b/site/static/.htaccess @@ -1,4 +1,5 @@ RewriteEngine On +RewriteBase / ErrorDocument 404 /404.html