chore: configure syslog for web servers
This commit is contained in:
@@ -61,8 +61,10 @@ http {
|
||||
|
||||
# Logging
|
||||
log_format host '$remote_addr - $remote_user [$time_local] "[$host] $request" $status $bytes_sent "$http_referer" "$http_user_agent" "$gzip_ratio"';
|
||||
access_log /dev/stdout;
|
||||
error_log stderr;
|
||||
##access_log /dev/stdout;
|
||||
access_log syslog:server=unix:/dev/log,facility=local1,nohostname;
|
||||
error_log syslog:server=unix:/dev/log,facility=local1,nohostname info;
|
||||
error_log stderr error;
|
||||
|
||||
# GZIP
|
||||
gzip on;
|
||||
|
||||
Reference in New Issue
Block a user