I'm stuck on what seems to be a trivial problem when generating a rewrite url using a map. I've tried multiple regex, but can't get the map to match for both conditions. $some_var is a variable that may or may not be passed from an upstream server and I want to rewrite a location, if it's present or not. This is what I've got, but it's not working. Any help greatly appreciated! map $soby Dan_v - How to...