Use public_hostname by default unless overridden.