From 32b64fc266342651d779d739125447d6bcd17d87 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 21 Aug 2019 03:34:35 +0200 Subject: Redirect ErrorLog --- 2.4/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '2.4/Dockerfile') diff --git a/2.4/Dockerfile b/2.4/Dockerfile index 26757fc..b57d230 100644 --- a/2.4/Dockerfile +++ b/2.4/Dockerfile @@ -35,8 +35,9 @@ RUN set -ex; \ # Create directories for Dav data and lock database. mkdir -p "/var/dav/data"; \ \ - # Configure port + # Configure Apache sed -i -e "s|Listen .*|Listen 8080|" "/etc/apache2/httpd.conf"; \ + sed -i -e "s|ErrorLog logs.*|ErrorLog /proc/self/fd/2|" "/etc/apache2/httpd.conf"; \ sed -i -e "s|PidFile .*|PidFile /tmp/apache.pid|" "/etc/apache2/conf.d/mpm.conf"; \ \ # Include enabled configs and sites. -- cgit v1.2.3