summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-08-21 03:41:52 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-08-21 03:41:52 +0200
commit4fc69d3b59e79534bb020d24611828d7052d56d9 (patch)
treec2f2e6809b13f8bc6e6dcd9913a617560875722f
parent32b64fc266342651d779d739125447d6bcd17d87 (diff)
downloadapache-4fc69d3b59e79534bb020d24611828d7052d56d9.tar.gz
apache-4fc69d3b59e79534bb020d24611828d7052d56d9.tar.bz2
apache-4fc69d3b59e79534bb020d24611828d7052d56d9.tar.xz
apache-4fc69d3b59e79534bb020d24611828d7052d56d9.zip
Redirect CustomLog
-rw-r--r--2.4/Dockerfile1
1 files changed, 1 insertions, 0 deletions
diff --git a/2.4/Dockerfile b/2.4/Dockerfile
index b57d230..9074b19 100644
--- a/2.4/Dockerfile
+++ b/2.4/Dockerfile
@@ -37,6 +37,7 @@ RUN set -ex; \
\
# Configure Apache
sed -i -e "s|Listen .*|Listen 8080|" "/etc/apache2/httpd.conf"; \
+ sed -i -e "s|CustomLog logs.*|CustomLog /proc/self/fd/1 combined|" "/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"; \
\