php fpm pool: Log the remote client IP address correctly.

This commit is contained in:
Andrea Dell'Amico 2020-01-06 17:00:19 +01:00
parent 214cd1d03c
commit ba319f76a5
2 changed files with 2 additions and 0 deletions

View File

@ -199,6 +199,7 @@ access.log = /var/log/php-fpm/$pool-access.log
;
; Default: "%R - %u %t \"%m %r\" %s"
;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
access.format = "%{REMOTE_ADDR}e - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
; The timeout for serving a single request after which the worker process will
; be killed. This option should be used when the 'max_execution_time' ini option

View File

@ -193,6 +193,7 @@ access.log = /var/log/php-fpm/$pool-access.log
;
; Default: "%R - %u %t \"%m %r\" %s"
;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
access.format = "%{REMOTE_ADDR}e - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
; The timeout for serving a single request after which the worker process will
; be killed. This option should be used when the 'max_execution_time' ini option