1
0

configuration/common: Add virtual host to access log

This commit is contained in:
clerie 2023-03-15 21:00:23 +01:00
parent 66187e605a
commit 60df38c367

View File

@ -79,7 +79,10 @@
log_format combined_anon '$remote_addr_anon - $remote_user [$time_local] ' log_format combined_anon '$remote_addr_anon - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent ' '"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"'; '"$http_referer" "$http_user_agent"';
access_log /var/log/nginx/access.log combined_anon; log_format vcombined_anon '$host: $remote_addr_anon - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';
access_log /var/log/nginx/access.log vcombined_anon;
''; '';
virtualHosts = { virtualHosts = {