Skip to content

Commit b3b920d

Browse files
committed
fix apache log format
1 parent e8ff770 commit b3b920d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apache/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ RUN sed -i \
1717
# Use real client IP in logs (from X-Forwarded-For)
1818
RUN sed -i 's/%h/%a/g' /usr/local/apache2/conf/httpd.conf
1919

20+
# Switch logging to combined (Adds User-Agent and Referer)
21+
RUN sed -i 's/CustomLog \/proc\/self\/fd\/1 common/CustomLog \/proc\/self\/fd\/1 combined/' /usr/local/apache2/conf/httpd.conf
22+
2023
RUN echo "Include conf/extra/remoteip.conf" >> /usr/local/apache2/conf/httpd.conf
2124
RUN echo "Include conf/extra/mediawiki.conf" >> /usr/local/apache2/conf/httpd.conf
2225

0 commit comments

Comments
 (0)