Doc #62828 [Ver]: Need documentation for access.format tokens

From: Date: Wed, 28 Mar 2018 11:37:02 +0000
Subject: Doc #62828 [Ver]: Need documentation for access.format tokens
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15576@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 Updated by: requinix@php.net Reported by: porjo38 at yahoo dot com dot au Summary: Need documentation for access.format tokens Status: Verified Type: Documentation Problem Package: FPM related Operating System: Centos Linux PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Fixing the typo is at https://bugs.php.net/bug.php?id=76157 Previous Comments: ------------------------------------------------------------------------ [2018-03-28 11:15:35] requinix@php.net Looks like %{}e has always been there. I don't see any docs for the options though. %% %{total|user|system}C = CPU usage, %C=total %{seconds|mili|miliseconds|micro|microseconds}d = request time, %d=seconds (yes, milliseconds is misspelled) %{NAME}e = environment variable or '-' %f = SCRIPT_FILENAME or '-' %l = CONTENT_LENGTH %m = REQUEST_METHOD or '-' %{bytes|kilo|kilobytes|mega|megabytes}M = memory usage, %M=bytes %n = pool name or '-' %{NAME}o = outgoing header or '-' %p = PID %P = parent PID %q = QUERY_STRING %Q = question mark if QUERY_STRING is present %r = REQUEST_URI %R = remote address or '-' %s = response code %{FORMAT}t/T = time formatted using strftime, %t/%T implies "%d/%b/%Y:%H:%M:%S %z" %u = AUTH_USER /sapi/fpm/fpm/fpm_log.c:fpm_log_write() ------------------------------------------------------------------------ [2018-03-28 06:29:50] d at tucny dot com 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 ------------------------------------------------------------------------ [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.doc.bugs (#15576) next »