Skip to content

Instantly share code, notes, and snippets.

@amgorb
Created April 13, 2017 13:21
Show Gist options
  • Save amgorb/f33029871d794636c438d0b021f13b3d to your computer and use it in GitHub Desktop.
Save amgorb/f33029871d794636c438d0b021f13b3d to your computer and use it in GitHub Desktop.
poors man debugging nginx internals and lua variables, will log nginx variable to error_log
nginx.conf:
...
log_by_lua_block {
ngx.log(ngx.ERR,ngx.var.request_uri)
ngx.log(ngx.ERR,ngx.req.get_headers()["Cookie"])
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment