log to file, use the log_format

This commit is contained in:
Luc 2021-12-07 10:58:22 +01:00
parent c7a281c78e
commit fe7baed7f9
1 changed files with 1 additions and 1 deletions

View File

@ -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;