log the host in nginx logs

This commit is contained in:
Girish Ramakrishnan
2017-07-21 09:43:44 -07:00
parent dcd8c82a75
commit db7a4b75ae

View File

@@ -15,7 +15,7 @@ http {
# the collectd config depends on this log format
log_format combined2 '$remote_addr - [$time_local] '
'"$request" $status $body_bytes_sent $request_time '
'"$http_referer" "$http_user_agent"';
'"$http_referer" "$host" "$http_user_agent"';
# required for long host names
server_names_hash_bucket_size 128;