HTTP variables
$request_filename variable (HTTP core)
Computed filesystem pathname for the current request, based on the URI and configured root or alias. It does not prove that the file exists or is readable. Avoid returning internal paths to clients.
Formal Syntax & Structure
nginx syntaxnginx
$request_filenameWorking Example
Example Snippetnginx
# Partial private diagnostic log configurationlog_format mapping '$status $request_filename';