79236104

Date: 2024-11-29 07:06:41
Score: 0.5
Natty:
Report link

One of the right method:

map $request $logfile{
   ~*filename\.php 0; default 1;
}
server{
   access_log /pathtologfilename.log combined if=$logfile;
}

map variable should be outside the server. Do not forget to add combined keyword.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mark Alvin