Fix nginx error when configuring multiple backends