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