log to file, use the log_format
This commit is contained in:
@@ -32,7 +32,7 @@ http {
|
||||
add_header X-XSS-Protection "1; mode=block";
|
||||
|
||||
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;
|
||||
access_log /var/log/acces.log host;
|
||||
error_log stderr;
|
||||
|
||||
gzip on;
|
||||
|
||||
Reference in New Issue
Block a user