nginx can't handle empty upstreams, use localhost when no ip found