changed LogFormat using X-Forward-For Header

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

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