Is this really testing order of preference? The "cloudfirst" passed in means that it won't match any of the FooServers stuff. For precedence, if that is what you're trying to test, I'd have thought you'd need a named location that refers to FooServers but overrides some of the properties.