Добавлено время обработки запроса в access.log
This commit is contained in:
parent
9f25bf7fb9
commit
ec3bddafd7
1 changed files with 4 additions and 0 deletions
|
|
@ -14,6 +14,10 @@ events {
|
||||||
include /etc/nginx/conf-enabled.d/*.conf;
|
include /etc/nginx/conf-enabled.d/*.conf;
|
||||||
|
|
||||||
http {
|
http {
|
||||||
|
log_format req_time '$remote_addr - $remote_user [$time_local] "$request" '
|
||||||
|
'$status $body_bytes_sent "$http_referer" '
|
||||||
|
'"$http_user_agent" "$http_x_forwarded_for" $request_time';
|
||||||
|
access_log /var/log/nginx/access.log req_time;
|
||||||
proxy_temp_path /var/spool/nginx/tmp/proxy;
|
proxy_temp_path /var/spool/nginx/tmp/proxy;
|
||||||
fastcgi_temp_path /var/spool/nginx/tmp/fastcgi;
|
fastcgi_temp_path /var/spool/nginx/tmp/fastcgi;
|
||||||
client_body_temp_path /var/spool/nginx/tmp/client;
|
client_body_temp_path /var/spool/nginx/tmp/client;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue