A surprising number of systems are misconfigured such that Apache reports the server name as 'localhost' or '127.0.0.1'.
MediaWiki then uses this when creating fully qualified URLs such as for redirection from index.php to the main page, and the
resulting browser error messages tend to be non-intuitive.
$wgServer can be overridden manually, but that's a pain.
At the least, we should detect the worst-case condition and make it easy to override in config/index.php. If possible, we might
explore alternate ways to get the hostname (hostname for instance, or other env vars.)
Version: unspecified
Severity: enhancement