External FTP Storage should request hostname instead of URL

Fix issue #6277

Backport of 658af62