Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
The documentation contains your example:
map $status $loggable {
~^[23] 0;
default 1;
}
access_log /path/to/access.log combined if=$loggable;
$status
) are 2xx or 3xx, i.e. starts with the number 2 or 3, the variable $loggable
takes the value 0
. In the if
directive parameter, a access_log
zero value disables logging in these cases.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question