Req #62828 [Com]: php-fpm - include REMOTE_ADDR in access log

From: Date: Wed, 28 Mar 2018 06:29:52 +0000
Subject: Req #62828 [Com]: php-fpm - include REMOTE_ADDR in access log
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-214503@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62828&edit=1 ID: 62828 Comment by: d at tucny dot com Reported by: porjo38 at yahoo dot com dot au Summary: php-fpm - include REMOTE_ADDR in access log Status: Open Type: Feature/Change Request Package: FPM related Operating System: Centos Linux PHP Version: 5.4.5 Block user comment: N Private report: N New Comment: Not sure when this became an option, and I realise this is a very old request, but, it is still open, as such... %e can be used for this. e.g. %{REMOTE_ADDR}e somewhere in the access.format Working on PHP-FPM 5.4.16 on CentOS 7 Previous Comments: ------------------------------------------------------------------------ [2012-08-15 13:52:26] porjo38 at yahoo dot com dot au Description: ------------ Using php-fpm compiled from php-5.4.5 source: The %R flag used with the access.format directive logs the IP of the proxy server that initiated the FastCGI connection. It would be good to have the option to also log the IP address of the client (as set in the REMOTE_ADDR environment variable) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62828&edit=1

« previous php.bugs (#214503) next »