From 9b487fc7038e9526cf9035bc0b164c14f66b5bb7 Mon Sep 17 00:00:00 2001 From: Denis Ergin Date: Tue, 1 Oct 2024 13:09:12 +0200 Subject: [PATCH] fix(nginx): log access in nginx --- nginx.conf | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/nginx.conf b/nginx.conf index 2386b88..3f07e8e 100644 --- a/nginx.conf +++ b/nginx.conf @@ -11,16 +11,10 @@ http { include mime.types; default_type text/html; - log_format main '$remote_addr - $remote_user [$time_local] ' - '"$request" $status $bytes_sent ' + log_format main '"$request" $status $bytes_sent ' '"$http_referer" "$http_user_agent" ' '"$gzip_ratio"'; - log_format download '$remote_addr - $remote_user [$time_local] ' - '"$request" $status $bytes_sent ' - '"$http_referer" "$http_user_agent" ' - '"$http_range" "$sent_http_content_range"'; - client_header_timeout 3m; client_body_timeout 3m; send_timeout 3m; @@ -47,7 +41,7 @@ http { server_name denis-ergin.de www.denis-ergin.de; root /usr/share/nginx/html; - access_log /var/log/nginx.access_log main; + access_log /var/log/nginx/access.log main; location / {