Skip to content

Commit 98c5a36

Browse files
sbrunnergeo-ghci-int[bot]
authored andcommitted
Be able to override ErrorLogFormat
1 parent 218d502 commit 98c5a36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ RUN a2enmod fcgid headers status \
103103
s!^(\s*ErrorLog)\s+\S+!\1 /proc/self/fd/2!g; \
104104
' '{}' ';' \
105105
&& sed -ri 's!LogFormat "(.*)" combined!LogFormat "%{us}T %{X-Request-Id}i \1" combined!g' /etc/apache2/apache2.conf \
106-
&& echo 'ErrorLogFormat "%{X-Request-Id}i [%l] [pid %P] %M"' >> /etc/apache2/apache2.conf \
106+
&& echo 'ErrorLogFormat "%{X-Request-Id}i [%l] [pid %P] %M"' > /etc/apache2/conf-enabled/000-error-log-format.conf \
107107
&& sed -i -e 's/<VirtualHost \*:80>/<VirtualHost *:8080>/' /etc/apache2/sites-available/000-default.conf \
108108
&& sed -i -e 's/Listen 80$/Listen 8080/' /etc/apache2/ports.conf \
109109
&& rm -rf /etc/apache2/conf-enabled/other-vhosts-access-log.conf

0 commit comments

Comments
 (0)