diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 15826c8..44cdaba 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -1,7 +1,7 @@ user nginx; worker_processes auto; -error_log /dev/null; # /var/log/nginx/error.log notice; +error_log /var/log/nginx/error.log notice; pid /var/run/nginx.pid; events { @@ -14,10 +14,12 @@ http { default_type application/octet-stream; log_format main '$remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; + '$status $body_bytes_sent bytes "$http_referer" ' + '"$http_x_forwarded_for"'; + + # While I removed PII from the above log format, still better not logging + access_log /dev/null main; # /var/log/nginx/access.log main; - access_log /dev/null main; server_tokens off;