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