diff --git a/Dockerfile b/Dockerfile index 8dc9a74..636b618 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,9 @@ RUN mkdir /run/apache2; chown apache /run/apache2 RUN ln -s /dev/stderr /var/log/apache2/error.log RUN ln -s /dev/stdout /var/log/apache2/access.log +# allow configurations to mark requests as "don't log" +RUN perl -i -pe 's{^(CustomLog logs/access.log)$}{$1 combined env=!dontlog};' /etc/apache2/httpd.conf RUN echo "IncludeOptional /web/config/*.conf" >> /etc/apache2/httpd.conf + ADD run-httpd /run.sh CMD /run.sh