Welcome! Log In Create A New Profile


Log Of Attempted Files

February 22, 2023 05:40PM
dear nginx experts --- If I use an alias in my location, then
$realpath shows in my log file what file was actually served up.

How can I show in the access log file what file(s) nginx tried? I do
not want the full rewrite engine in the debug log --- it contains way
too many things I do not understand and way too few things I do [or,
equivalently, I am just much too clueless]. I would ideally want just
to see something like

/var/www/html/index.html not found
/var/www/html/index.htm not found
/var/www/html/index-debian.htm OK

Short of this, what is the $variable name for the last file for the
log format in nginx? pointer(s) appreciated.
nginx mailing list
Subject Author Posted

Log Of Attempted Files

iaw4 February 22, 2023 05:40PM

Re: Log Of Attempted Files

Maxim Dounin February 22, 2023 07:34PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 56
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready