Welcome! Log In Create A New Profile


request_body capture regex

Posted by Musta Fa 
Musta Fa
request_body capture regex
April 20, 2017 04:40PM
is it possible to capture POST data, but as soon there is a "password" then
this word and its value to mask or exclude from log.

i was trying to split request_body, but it not working correct:

map $request_body $request_body_nopwd {
"~(.*)(&|%5B)password(%5D)?\=" $1;

also if request dont have password it returns empty value, etc
nginx mailing list
Sorry, only registered users may post in this forum.

Click here to login