Fix 'don't log' feature in container
This commit is contained in:
parent
d8f0c9c21a
commit
5a9640f9a2
@ -9,7 +9,7 @@ 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 perl -i -pe 's{^(\s+CustomLog logs/access.log combined)$}{$1 env=!dontlog};' /etc/apache2/httpd.conf
|
||||
RUN echo "IncludeOptional /web/config/*.conf" >> /etc/apache2/httpd.conf
|
||||
|
||||
ADD run-httpd /run.sh
|
||||
|
Loading…
Reference in New Issue
Block a user