diff --git a/Dockerfile b/Dockerfile index 35dafd0..af802de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ FROM php:8.3-apache # Apache config COPY conf/vhost.conf /etc/apache2/sites-available/000-default.conf COPY conf/apache.conf /etc/apache2/conf-available/z-ambient.conf +COPY errors /errors RUN a2enconf z-ambient # Php config diff --git a/conf/apache.conf b/conf/apache.conf index 1c32bb7..606d9c6 100644 --- a/conf/apache.conf +++ b/conf/apache.conf @@ -6,3 +6,14 @@ ServerTokens Prod ServerSignature Off + + + Options -Indexes + AllowOverride None + Require all granted + + +Alias /_errors/ /errors/ +ErrorDocument 404 /_errors/404.html +ErrorDocument 403 /_errors/403.html +ErrorDocument 500 /_errors/500.html