Gone south

what does this phrase mean exactly?

My understanding of the phrase is, if you've "gone south," you're dead. Or if a project has gone south, it's "in the toilet," "gone bust," etc.