request_body capture regex

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

request_body capture regex

Musta Fa
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
[hidden email]