• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question how to modify Nginx's log directive to log request time ?

qtwrk

Basic Pleskian
how to modify Nginx's log directive to log request time ?

Hi , I wanna add request time into log file , so i found this
Module ngx_http_log_module

$request_time

, but I don't know where to add,

just one more question,

if server-wide conf and domain conf are conflicts , which one will prevail ?
 
Hi qtwrk,

pls. note that nginx has several additional modules, like for example "ngx_http_log_module". Not all ( possible ) modules are compiled into your current used nginx version.

You are able to see current compiled modules/configure options with the command ( logged in as user "root over SSH ):
Code:
nginx -V
 
Hi qtwrk,

pls. note that nginx has several additional modules, like for example "ngx_http_log_module". Not all ( possible ) modules are compiled into your current used nginx version.

You are able to see current compiled modules/configure options with the command ( logged in as user "root over SSH ):
Code:
nginx -V

You are right, the default compilation didn't include this.

Is it painful to make recompile for plesk nginx?
 
Back
Top