Skip to content

Instantly share code, notes, and snippets.

@jdunck
Created January 28, 2016 23:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdunck/d9fd79e2627ea972cfa7 to your computer and use it in GitHub Desktop.
Save jdunck/d9fd79e2627ea972cfa7 to your computer and use it in GitHub Desktop.
In nginx.conf, in the Logging Settings section:
log_format replay '[$time_local] $server_name $status $content_type $request_method XX_HOST_XX$request_uri Authorization:"$http_authorization" $request_body_file';
In specific server/location's config:
client_body_in_file_only on;
access_log /var/log/nginx/whatever-replay.log replay;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment