Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: Conditional Logging on more than one constraint

$
0
0
Use a third Map which does an OR or an AND on other map variables in to a new single variable for use.

map $http_user_agent $logv1 {
...
}

map $http_user_agent $logv2 {
...
}

map $http_user_agent $logv3 {
$logv1 0;
$logv2 1;
}

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>