diff --git a/library/centos/roles/php-fpm/templates/php-fpm-pool.conf.j2 b/library/centos/roles/php-fpm/templates/php-fpm-pool.conf.j2 index 22817db..ce10275 100644 --- a/library/centos/roles/php-fpm/templates/php-fpm-pool.conf.j2 +++ b/library/centos/roles/php-fpm/templates/php-fpm-pool.conf.j2 @@ -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 diff --git a/library/roles/php-fpm/templates/php-fpm-pool.conf.j2 b/library/roles/php-fpm/templates/php-fpm-pool.conf.j2 index c9362ed..8e94601 100644 --- a/library/roles/php-fpm/templates/php-fpm-pool.conf.j2 +++ b/library/roles/php-fpm/templates/php-fpm-pool.conf.j2 @@ -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