Skip to content

Instantly share code, notes, and snippets.

@pvmsikrsna
Forked from rch850/nginx-log-postdata.conf
Created April 13, 2016 05:24
Show Gist options
  • Select an option

  • Save pvmsikrsna/320a255646c874c01ece7fc5111f531c to your computer and use it in GitHub Desktop.

Select an option

Save pvmsikrsna/320a255646c874c01ece7fc5111f531c to your computer and use it in GitHub Desktop.
log_format postdata '$time_local $request $request_body';
location = /path {
access_log /var/log/nginx/postdata.log postdata;
proxy_pass http://localhost:8080; # <= set your port
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment