diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2022-09-25 14:15:08 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2022-09-25 14:15:18 -0400 |
| commit | c8ba885d3256775c506b8d26d5bdfc193d1b42f2 (patch) | |
| tree | 7fc57dbb15812f1cc6a993b67295a44467e99554 /nginx | |
| parent | 9a37de8546744b32432ec78dc4fe0b106af0ffb7 (diff) | |
use syslog (journald) for nginx access log
Diffstat (limited to 'nginx')
| -rw-r--r-- | nginx/nginx.conf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 4a78f8a9..5d5d7f86 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -67,7 +67,7 @@ http { log_format main '$remote_addr - $remote_user [$time_local] ' '"$request_method $scheme://$host$request_uri $server_protocol" $status $body_bytes_sent ' '"$http_referer" "$http_user_agent"'; - access_log /var/log/nginx/access.log main buffer=64k flush=1m; + access_log syslog:server=unix:/dev/log,nohostname; error_log syslog:server=unix:/dev/log,nohostname; log_not_found off; |
