php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79776 php-fpm pool access log not shows client IP Address even if it is configurated
Submitted: 2020-07-03 18:30 UTC Modified: 2020-07-12 04:22 UTC
From: ijb_green at hotmail dot com Assigned:
Status: No Feedback Package: FPM related
PHP Version: 7.4.7 OS: Docker on Ubuntu 18.04
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2020-07-03 18:30 UTC] ijb_green at hotmail dot com
Description:
------------
When i configure the %R format escape in access.format format in my pool configuration file in the file only show a hypen with no ip address

Expected result:
----------------
IP of the client in the access log

Actual result:
--------------
-

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-07-03 18:32 UTC] ijb_green at hotmail dot com
This is the configuration entry

;      The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
;      e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
;  %T: time the log has been written (the request has finished)
;      it can accept a strftime(3) format:
;      %d/%b/%Y:%H:%M:%S %z (default)
;      The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
;      e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
;  %u: remote user
;
; 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 = "%R - %u %t \"%m %r\" %s"
 [2020-07-03 18:34 UTC] ijb_green at hotmail dot com
The output:


- -  30/Jun/2020:18:15:17 -0500 "GET /index.php" 200 /server/phpsrv/site/index.php 1.002 2048 0.00%
- -  30/Jun/2020:18:15:22 -0500 "GET /index.php" 200 /server/phpsrv/site/index.php 0.610 2048 0.00%
- -  30/Jun/2020:18:23:19 -0500 "GET /index.php" 200 /server/phpsrv/site/index.php 1.827 2048 0.00%
- -  30/Jun/2020:18:23:20 -0500 "GET /index.php" 200 /server/phpsrv/site/index.php 1.058 2048 0.00%
- -  30/Jun/2020:18:23:24 -0500 "GET /index.php" 200 /server/phpsrv/site/index.php 0.294 2048 0.00%
 [2020-07-03 18:54 UTC] requinix@php.net
-Status: Open +Status: Feedback -Package: *Configuration Issues +Package: FPM related
 [2020-07-03 18:54 UTC] requinix@php.net
Are you connecting over a Unix socket or TCP/IP? Use an IP address in the URL.
 [2020-07-12 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Oct 16 17:03:34 2021 UTC