Skip to content

Instantly share code, notes, and snippets.

@mnordhoff
Created December 11, 2016 22:16
Show Gist options
  • Save mnordhoff/9c6316e57e982e18238c534407c14d2f to your computer and use it in GitHub Desktop.
Save mnordhoff/9c6316e57e982e18238c534407c14d2f to your computer and use it in GitHub Desktop.
map $host $host_or_hyphen {
default $host;
"" -;
}
log_format lighttpd
'$remote_addr $host_or_hyphen $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" "$http_user_agent"';
access_log /var/log/nginx/access.log lighttpd;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment