summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-08-21 03:34:35 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-08-21 03:34:35 +0200
commit32b64fc266342651d779d739125447d6bcd17d87 (patch)
treea92f35d4257f597f52840c508b6a5345dd17251a
parent2d8efa1787ffa56dfc78edb62f4dbc94c1c9450e (diff)
downloadapache-32b64fc266342651d779d739125447d6bcd17d87.tar.gz
apache-32b64fc266342651d779d739125447d6bcd17d87.tar.bz2
apache-32b64fc266342651d779d739125447d6bcd17d87.tar.xz
apache-32b64fc266342651d779d739125447d6bcd17d87.zip
Redirect ErrorLog
-rw-r--r--2.4/Dockerfile3
1 files changed, 2 insertions, 1 deletions
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.