log to file, use the log_format
This commit is contained in:
parent
c7a281c78e
commit
fe7baed7f9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue