changed LogFormat using X-Forward-For Header
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user