Bug #81670 [Opn]: Access log contains wrong values for "%r" (request URI) format string

From: Date: Sun, 28 Nov 2021 19:32:02 +0000
Subject: Bug #81670 [Opn]: Access log contains wrong values for "%r" (request URI) format string
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-238019@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81670&edit=1

 ID:                 81670
 Updated by:         bukka@php.net
 Reported by:        amenshchikov at gmail dot com
 Summary:            Access log contains wrong values for "%r" (request
                     URI) format string
 Status:             Open
 Type:               Bug
 Package:            FPM related
 Operating System:   Debian 11
 PHP Version:        8.1.0
 Block user comment: N
 Private report:     N

 New Comment:

FPM takes request URI from the SCRIPT_NAME. I guess this is more a documentation issue (more
description in docs maybe) / feature request so I will change this to feature request as we
can't just change it at this stage anyway.


Previous Comments:
------------------------------------------------------------------------
[2021-11-28 18:55:03] amenshchikov at gmail dot com

Description:
------------
Instead of real request URI (without query string), that contained in REQUEST_URI env variable,
"%r" outputs SCRIPT_NAME value into access log.

In case I need request URI with query string, I can use "%{REQUEST_URI}e" and there is no
problem. But when I need request URI without query string (as it intended with "%r") I
don't know what to do.



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=81670&edit=1


Thread (10 messages)

« previous php.bugs (#238019) next »