changed LogFormat using X-Forward-For Header

This commit is contained in:
damage committed 2023-07-08 22:14:43 +02:00
1 parent fb7c42f541
commit 8f154fbbd1
2 files changed
+3 -1

No files matched your search

+3
View File
@@ -28,6 +28,9 @@ RUN curl https://getcomposer.org/installer --output /tmp/composer-setup.php && p
# mysqli
RUN docker-php-ext-configure mysqli && docker-php-ext-install mysqli
# replace IP with X-Forwarded-For Header in Logs
RUN sed -i 's/^\(LogFormat .*\)%h/\1%{X-Forwarded-For}i/g' /etc/apache2/apache2.conf
# cleanup
RUN rm -rf /var/lib/apt/lists/* /tmp/composer-setup.php