Skip to content

Commit

Permalink
chg logging format
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Taylor <[email protected]>
  • Loading branch information
sbtaylor15 committed Dec 6, 2023
1 parent 455b002 commit d1179d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ http {
#
# access_log logs/access.log main;

log_format upstreamlog '[$time_local] $remote_addr to: $upstream_addr: $request upstream_response_time $upstream_response_time msec $msec request_time $request_time';

log_format upstreamlog '[$time_local] $remote_addr - $remote_user "$host$request_uri" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for" Proxy: "$proxy_host" "$upstream_addr"';

access_log /var/log/nginx/access.log upstreamlog;

Expand Down

0 comments on commit d1179d3

Please sign in to comment.