Created
April 13, 2017 13:21
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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