From 461af4781d6aba384e91c0f957324bbe6c24e6fd Mon Sep 17 00:00:00 2001 From: colmaris Date: Sun, 15 Dec 2024 11:17:16 +0100 Subject: [PATCH] Updated --- Dockerfile | 1 + conf/apache.conf | 11 +++++++++++ 2 files changed, 12 insertions(+) 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