Skip to content

Instantly share code, notes, and snippets.

@holmberd
Created August 22, 2018 17:28
Show Gist options
  • Save holmberd/f50600ecf0dfc33f545088ea0e4db21f to your computer and use it in GitHub Desktop.
Save holmberd/f50600ecf0dfc33f545088ea0e4db21f to your computer and use it in GitHub Desktop.
Nginx access log debug

Debug Nginx access log

log_format debug_format '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for" host:"$host"';
access_log /var/log/nginx/access.log debug_format;

sudo service nginx reload

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment