This commit is contained in:
Colmaris 2024-12-15 11:17:16 +01:00
parent 65b6cb4d15
commit 461af4781d
2 changed files with 12 additions and 0 deletions

View file

@ -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

View file

@ -6,3 +6,14 @@
ServerTokens Prod
ServerSignature Off
<Directory /errors/>
Options -Indexes
AllowOverride None
Require all granted
</Directory>
Alias /_errors/ /errors/
ErrorDocument 404 /_errors/404.html
ErrorDocument 403 /_errors/403.html
ErrorDocument 500 /_errors/500.html