Skip to content

Instantly share code, notes, and snippets.

@timball
Created October 15, 2015 14:54
Show Gist options
  • Save timball/4fad1a5816cf568fbd36 to your computer and use it in GitHub Desktop.
Save timball/4fad1a5816cf568fbd36 to your computer and use it in GitHub Desktop.
# an nginx log_format that has host name included instead of regular $request
log_format combined_with_host '$remote_addr - $remote_user [$time_local] '
'"$request_method $scheme://$host$uri $server_protocol" $status $bytes_sent '
'"$http_referer" "$http_user_agent"';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment